Spec-Zone.ru › ColdFusion

directoryRename

Renames given directory. NOTE:Ensure that you have the required permissions to run this function.

directoryRename(oldPath, newPath) → returns void

  • CF9+
  • Lucee
  • BL 1.0.0+
  • See Also: fileMove directoryCreate directoryDelete

    Argument Reference

    oldPath string
    Required

    Absolute path of the directory to be renamed. Alternatively, you can specify IP address, for example, DirectoryRename("//12.3.123.123/c_drive/test");

    newPath string
    Required

    New name for the directory.

    createPath boolean
    Default: true

    Lucee Only. If set to false, expects all parent directories to exist. true will generate necessary directories.

    Examples
    Sample code invoking the directoryRename function

    Tag Syntax

    <cfset renameDirectory = "someDirPath" />
    <cfset rename = "newName" />
    <cfset directoryRename(renameDirectory,newName)>

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/directoryrename

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API