About 67,400 results
Open links in new tab
  1. Using folder wildcards to copy files with Python

    Apr 1, 2015 · for f in gridShpFiles: shutil.copy(f, path) Take your time to set paths (lines 2, 3, and 4), I tested the script on GNU/Linux, but Windows paths are always trickier. As you notice, you …

  2. Unable to delete folder with shutil.rmtree () with ArcPy?

    Jan 11, 2016 · Unable to delete folder with shutil.rmtree () with ArcPy? Ask Question Asked 9 years, 5 months ago Modified 9 years, 5 months ago

  3. Moving shapefile using Python shutil? - Geographic Information …

    Dec 26, 2015 · Moving shapefile using Python shutil? Ask Question Asked 9 years, 6 months ago Modified 9 years, 6 months ago

  4. qfieldsync - Python Error during QField Packaging - Geographic ...

    Feb 6, 2022 · Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.

  5. python - shuntil.rmtree () deleting directory gdb instead of files ...

    shutil.rmtree(clearfile) I don't want the gdb deleted, just the files within as each time I run the script the last bit of code builds a new featureclass from merging other featureclasses in the scrap …

  6. Using shutil.copyfile () to copy shapefiles from one folder to …

    Dec 21, 2020 · I am trying to copy shapefiles from one folder to another using a list of shapefile names saved in a txt file (shapefile name: BH_0231). I have the script below that works for …

  7. Copy file geodatabase using Python? - Geographic Information …

    May 5, 2015 · 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 …

  8. arcgis online - How can I use python to zip a file geodatabase and …

    Jun 12, 2024 · I am also noticing that the archive made using shutil is smaller (5964 KB vs 6166 KB) than the zip folder made using file explorer. So I believe this narrows it down to an issue …

  9. qgis - WindowsError: [Error 32] The process cannot access the file ...

    I am reading images (through Python) and do something. These images are placed in a temporary file, through: tf = tempfile.mkdtemp(filename) I use gdal to read the images (short …

  10. Deleting folder and processed files in QGIS using PyQGIS

    Jun 11, 2022 · It seems to me a problem of timing, whereby the line: shutil.rmtree(f'{path_output}') is being called before the layer has been completely released. I tried a few approaches to …