文件夹属性
汇总
Describe 函数可返回文件夹的 工作空间 属性组。
对于文件夹, Describe dataType 属性将返回 "Folder" 的值。
代码示例
文件夹属性示例
以下独立脚本显示了文件夹的一些属性:
import arcpy
# Create a Describe object
desc = arcpy.Describe("C:/data")
# Print the dataType and a workspace property
print("Data Type: " + desc.dataType)
print("Workspace Type: " + desc.workspaceType)