摘要
Describe 函数可返回文件夹的工作空间属性。
文件夹可返回“Folder”的 dataType。
代码示例
Folder properties example (stand-alone script)
The following stand-alone script displays some properties for a 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