Summary
Transfers files between a file system and a cloud storage workspace.
Usage
This tool supports hosted image products in the cloud.
The tool does not support file transfers to or from geodatabases.
When the tool is run in a server context, such as a published geoprocessing service, it can accept the data store's relative path, for example, /cloudStores/s3cloudstore/datafolder.
Syntax
arcpy.management.TransferFiles(input_paths, output_folder, {file_filter})
Parameter | Explanation | Data Type |
input_paths [input_paths,...] | The list of input files or folders that will be copied to the output folder. The path can be a file system path or cloud storage path where the .acs file can be used. | Raster Dataset; File; Folder |
output_folder | The output folder path where the files will be copied. | Folder |
file_filter (Optional) | A file pattern filter that will limit the number of files that need to be copied, such as .tif, .crf, and similar image file types. | String |
Derived Output
Name | Explanation | Data Type |
derived_output_folder | The output raster dataset. | Folder |
Code sample
This is a Python sample for TransferFiles.
import arcpy
#Transfer individual files
arcpy.TransferFiles_management(r"c:\test\raster.tif;c:\test\raster2.tif", r"c:\cloudstore\azurecloud.acsazfolder")
This is a Python script sample for TransferFiles.
#===========================
#Transfer files
'''Usage: TransferFiles_management(inputpaths;inputpaths..., outputfolder, {filefilter})'''
import arcpy
#Transfer folder of files with filter
input_folder = "c:\\test\\uploaddata"
output_foler = "c:\\clouconnection\\s3cloudstore.acs\\s3folder"
filter = "*.tif"
arcpy.TransferFiles_management(input_folder, output_foler, filter)
Environments
Licensing information
- Basic: No
- Standard: No
- Advanced: Yes