1/1/2023 0 Comments Rename directory![]() ![]() The file system attributes to be set on the directory. Note that only one of x-ms-file-permission or x-ms-file-permission-key can be specified. This can be created using the Create-Permission API. The key of the permission to be set for the file. Optional if x-ms-file-permission is not specified. A value of preserve may be passed to keep an existing value unchanged. If specified, it must have an owner, group, and discretionary access control list (DACL). This header can be used if the permissions size is over 8 KiB, otherwise the x-ms-file-permission-key may be used. This permission is the security descriptor for the directory specified in the Security Descriptor Definition Language (SDDL). Optional if x-ms-file-permission-key is not specified. If true, x-ms-replace-if-exists must also be true. If destination file exists with readonly attribute, overwrite the file. If the destination file already exists, overwrite the file. For more information, see Versioning for the Azure Storage Services. Specifies the version of the operation to use for this request. For more information, see Authorize requests to Azure Storage. Specifies the Coordinated Universal Time (UTC) for the request. ![]() Specifies the authorization scheme, account name, and signature. The following table describes required and optional request headers. For more information, see Setting Timeouts for File Service Operations. The timeout parameter is expressed in seconds. The following additional parameters may be specified on the request URI. The path to the parent directory.įor details on path naming restrictions, see Naming and Referencing Shares, Directories, Files, and Metadata. Replace the path components shown in the request URI with your own, as follows: Path Component The Rename Directory request may be constructed as follows. Protocol availability Enabled file share protocol This API is available beginning in version. *: Searches the Home directory for names matching the provided expression.The Rename Directory operation renames a directory and can optionally set system properties for the directory./Example_Directory/: Defines the replacement or the new directory name./ Directory1: Specifies the expression or the part of the old directory name that you want to replace.s: Short for substitute, indicates that we are replacing the expression with the replacement.In this example, we can see that the rename command syntax consists of several sections: For example, if we want to rename Directory1 to Example_Directory: rename 's/Directory1/Example_Directory/' * The command renames the file by replacing the first occurrence of the expression with the replacement. The rename command uses the following syntax: rename 's///' Renaming a Single Directory With the rename Command For Arch Linux, use sudo pacman -S rename. RENAME DIRECTORY INSTALLFor CentOS and Fedora, use sudo yum install prename.For Ubuntu and Debian, use sudo apt install rename.If your system is missing the rename command, install it with: Note: The rename command is not included in all Linux distributions by default. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |