I am wondering if anyone has solved this or can help me on my code. I have a Parcel shapefile, and I would like to create folders based on the attribute data (per row) from a field in the shapefile; the field is FID. The folders will eventually be used for relative hyperlinks.
My error comes in the line os.makedirs(os.path.join(PF,row.FID)); I know the rest of the code works when I comment this out - Python returns all the values per row> I want to create new folders from these values.
import os, arcpy
featureclass = "W:\\Shapefile\\Shapefile.shp"
PF = "W:\\12345678\\Project\\Parcel"
rows = arcpy.SearchCursor(featureclass)
row = rows.next()
while row:
print row.FID
os.makedirs(os.path.join(PF,row.FID))
row = rows.next()