Skip to main content
2 of 3
added 1 character in body; edited tags
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Arcpy SDE Connection Getting Invalid Path?

I literally copied and pasted the file path (r'C:\Users\myName\AppData\Roaming\ESRI\Desktop10.4\ArcCatalog\mydatabase.sde'), but after I run my script, I always get the error saying error 267, the directory name is invalid.

Is this because I am trying to use os.listdir?