Copies an existing file to a new file. Copy String, String. Overwriting a file of the same name is not allowed. This cannot be a directory or an existing file. Applies to. Copy String, String, Boolean.
Overwriting a file of the same name is allowed. This cannot be a directory. In this article. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Is this page helpful? Please rate your experience Yes No. Any additional feedback? Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services.
Privacy policy. The following examples show how to copy, move, and delete files and folders in a synchronous manner by using the System. File , System. Directory , System. FileInfo , and System. In addition, if the source and destination accounts reside in different regions e. US North and US South , bandwidth used to transfer the request is charged to the source account as egress.
Egress between accounts within the same region is free. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Is this page helpful? Please rate your experience Yes No.
Any additional feedback? In this article. The timeout parameter is expressed in seconds. Specifies the authorization scheme, account name, and signature. For more information, see Authorize requests to Azure Storage. Required for all authorized requests.
Specifies the version of the operation to use for this request. This operation is available only in versions and later. For more information, see Versioning for the Azure Storage Services.
Name-value pairs associated with the file as metadata. If no name-value pairs are specified, the operation will copy the metadata from the source blob or file to the destination file. If one or more name-value pairs are specified, the destination file is created with the specified metadata, and the metadata is not copied from the source blob or file. Metadata names must adhere to the naming rules for C identifiers. Note that file metadata specified via the File service is not accessible from an SMB client.
To copy a file to another file within the same storage account, you may use Shared Key to authorize the source file. If you are copying a file from another storage account, or if you are copying a blob from the same storage account or another storage account, then you must authorize the source file or blob using a shared access signature. If the source is a public blob, no authorization is required to perform the copy operation.
A file in a share snapshot can also be specified as a copy source. Required if the destination file has an active lease.
0コメント