I am trying to copy fgdb from one path to another using Python.
copy(base.gdb,dest)
And got the message:
Error Info:
[Errno 13] Permission denied:
How to fix it?
|
|
|
As far as a file system is concerned, a file gdb is a directory - trying to copy one as a single file will not work. Try this out:
|
|||
|
|
|
Another option: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000051000000
|
|||||
|
|
Make sure that the person running the python script has permission to create additional folders in the directory the script is run from. What type of system are you running the script on? Where in the PATH are you trying to run the script from? |
|||
|
|
|
i made a simple script to copy geodatabases in-sub folders.It runs quite well. Hope this helps
|
|||
|
|
|
Pls. consider this in your python code. ( try to capture this error) While doing manual copy of fGDB to another folder, pls. ensure you have not opened the fGDB in arcmap. It will throw an error "*.lock" file. |
|||
|
|