Search
Plugins
>
vCenter Server 6.0.2
>
VcFileManager
> uploadFileToDatastore
Method uploadFileToDatastore(
VcDatacenter
datacenter,
VcDatastore
datastore,
String
srcFilePath,
String
destFilePath
)
Uploads a file to an existing folder on specific datastore . The file upload will overwrite any existing file with the same name in the same destination folder.
Returns
boolean
Arguments
Name
Type
Description
datacenter
VcDatacenter
Datacenter to use
datastore
VcDatastore
Datastore to use.
srcFilePath
String
File path to the file to be uploaded.
destFilePath
String
Destination file path on the datastore.