サマリー
Gets the file path and other file attributes of a directory entry from the cloud.
説明
注意:
This class cannot be instantiated directly. An instance of this class is returned by the AIODirEntry object's cloud property.
方法の概要
方法 | 説明 |
getpath ({type}) | Gets the absolute path of the entry in CloudPathType format. |
getvsipath () | Gets the absolute path of the entry in VSI format. |
方法
getpath ({type})
パラメーター | 説明 | データ タイプ |
type | 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 CloudPathType enumeration: CloudPathType.VSI, CloudPathType.ACS, CloudPathType.HTTP, and CloudPathType.CLOUDSTORES. (デフォルト値は次のとおりです CloudPathType.VSI) | Object |
データ タイプ | 説明 |
String | Returns the path in the format specified by the type parameter. |
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 ()
データ タイプ | 説明 |
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())