CloudDirEntryOp
Resumen
Gets the file path and other file attributes of a directory entry from the cloud.
Debate
Nota:
This class cannot be instantiated directly. An instance of this class is returned by the AIODirEntry object's cloud property.
Métodos
getpath({type})
Gets the absolute path of the entry in CloudPathType format.
| Nombre | Explicación | Tipo de datos |
|---|---|---|
|
type (Opcional) |
Specifies the path style that will be used for the returned URI (for cloud only). The data type is CloudPathType. Use the following options from the The default value is CloudPathType.VSI. |
Object |
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
String |
Returns the path in the format specified by the |
from arcpy import CloudPathType
cloud_io = AIO(r"C:\data\datacloud.acs")
for item in cloud_io.scandir(r'list', depth=0):
print(item.cloud.getpath(CloudPathType.ACS))
getvsipath()
Gets the absolute path of the entry in VSI format.
Valor de retorno
| Tipo de datos | Explicación |
|---|---|
|
String |
Returns the absolute VSI path. |
cloud_io = AIO(r"C:\data\datacloud.acs")
for item in cloud_io.scandir(r'list', depth=0):
print(item.cloud.getvsipath())