About 165,000 results
Open links in new tab
  1. How do I move a file in Python? - Stack Overflow

    Be aware: shutil.move in Python 2.7.3 fails if the destination already exists. So if that is possible, either catch the error, or manually remove the file/dir, then do the move.

  2. Moving all files from one directory to another using Python

    Jan 24, 2017 · I want to move all text files from one folder to another folder using Python. I found this code:

  3. Python - Move and overwrite files and folders - Stack Overflow

    I wanted to move files and folder structures and overwrite existing files, but not delete anything which is in the destination folder structure. I solved it by using os.walk(), recursively calling my …

  4. Rename and move file with Python - Stack Overflow

    In Python you can use the move function in shutil library to achieve this. Let's say on Linux, you have a file in /home/user/Downloads folder named "test.txt" and you want to move it to …

  5. Move files between two AWS S3 buckets using boto3

    May 11, 2015 · I have to move files between one bucket to another with Python Boto API. (I need it to "Cut" the file from the first Bucket and "Paste" it in the second one). What is the best way …

  6. Is there a way to move many files quickly in Python?

    Oct 9, 2010 · In that case (since he's already in python) shutil.move(stuff) is cleaner & safer to write than os.system('mv stuff'); Once you're already running python interpreter, the difference …

  7. Python moving files and directories from one folder to another

    Dec 18, 2014 · I would like to move in python files and directories in one directory to another directory with overwrite ability. I started with the following code: #moving files from progs path =

  8. python moving multiple files from one folder to the other based …

    Aug 1, 2014 · 18 I'm quite new to Python. I've been exploring the shutil module and can move things in general. My question revolves around: Imagine a scenario in which you have …

  9. Recursively move all files on subdirectories to another directory in …

    Jun 2, 2018 · Recursively move all files on subdirectories to another directory in Python Asked 7 years, 6 months ago Modified 2 years, 10 months ago Viewed 17k times

  10. Python: move a file up one directory - Stack Overflow

    Below is a small test routine which takes a path to a file and moves the file up one directory. I am using the os and shutil modules, is there one module that could perform this task? Is there a …