Skip to main content
1 of 3

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?