Transfer Files (Data Management)

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.

Parameters

LabelExplanationData Type
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
Filters
(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

LabelExplanationData Type
Output Folder

The output raster dataset.

Folder

arcpy.management.TransferFiles(input_paths, output_folder, {file_filter})
NameExplanationData 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

NameExplanationData Type
derived_output_folder

The output raster dataset.

Folder

Code sample

TransferFiles example 1 (Python window)

This is a Python sample for TransferFiles.

import arcpy

#Transfer individual files
arcpy.management.TransferFiles(r"c:\test\raster.tif;c:\test\raster2.tif", r"c:\cloudstore\azurecloud.acsazfolder")
TransferFiles example 2 (stand-alone script)

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.management.TransferFiles(input_folder, output_foler, filter)

Related topics