About 2,020,000 results
Open links in new tab
  1. python - How do I copy a file? - Stack Overflow

    How do I copy a file in Python?copy2(src,dst) is often more useful than copyfile(src,dst) because: it allows dst to be a directory (instead of the complete target filename), in which case the basename of …

  2. Copy a file from one location to another in Python

    Copy a file from one location to another in Python Asked 7 years, 1 month ago Modified 3 years, 6 months ago Viewed 117k times

  3. Copy multiple files in Python - Stack Overflow

    Aug 3, 2010 · How to copy all the files present in one directory to another directory using Python. I have the source path and the destination path as string.

  4. Copy file or directories recursively in Python - Stack Overflow

    163 Python seems to have functions for copying files (e.g. shutil.copy) and functions for copying directories (e.g. shutil.copytree) but I haven't found any function that handles both. Sure, it's trivial to …

  5. Copy file with pathlib in Python - Stack Overflow

    Nov 10, 2015 · python file copy python-2.x pathlib edited May 30, 2019 at 15:13 wovano 5,191 5 33 58

  6. shutil - How do I copy an entire directory of files into an existing ...

    How do I copy an entire directory of files into an existing directory using Python? Asked 16 years ago Modified 8 months ago Viewed 629k times

  7. python - How to Copy Files Fast - Stack Overflow

    31 What is the fastest way to copy files in a python program? It takes at least 3 times longer to copy files with shutil.copyfile() versus to a regular right-click-copy > right-click-paste using Windows File …

  8. python - Copy file if it doesn't already exist - Stack Overflow

    Dec 16, 2013 · I'm fairly new to python, and I'm wondering how I can copy and paste a file from one location to another with first checking to see if the copied file exists in the destination folder? The …

  9. How to copy a file to a remote server in Python using SCP or SSH?

    I have a text file on my local machine that is generated by a daily Python script run in cron. I would like to add a bit of code to have that file sent securely to my server over SSH.

  10. python - Keeping file attributes on a copy - Stack Overflow

    Mar 4, 2017 · Identical to copy() except that copy2() also attempts to preserve all file metadata. In recent versions of Python, there's a whole slew of functions to do bits and pieces of this separately— copy, …