Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

shutil move file

#all the same
import os
import shutil

os.rename("path/to/current/file.foo", "path/to/new/destination/for/file.foo")
os.replace("path/to/current/file.foo", "path/to/new/destination/for/file.foo")
shutil.move("path/to/current/file.foo", "path/to/new/destination/for/file.foo")
Comment

PREVIOUS NEXT
Code Example
Python :: Reverse an string Using Recursion in Python 
Python :: how to add mouse button in pygame 
Python :: python writelines 
Python :: set http response content type django 
Python :: create a new dataframe from existing dataframe pandas 
Python :: reverse an array python 
Python :: __call__ python 
Python :: remove character from string by index in python 
Python :: python check if all caps 
Python :: python get file path from in os.walk 
Python :: best pyqt5 book 
Python :: change x axis frequency 
Python :: boxplot groupby pandas 
Python :: resto division python 
Python :: make entry bigger in tkinter python 
Python :: how to get user id from username discord.py 
Python :: check if number is between two numbers python 
Python :: python console width 
Python :: matplotlib custom legend 
Python :: application/x-www-form-urlencoded python 
Python :: python merge lists 
Python :: random string generate python of 2.7 
Python :: filter pandas dataframe 
Python :: python count empty lines in text file 
Python :: converting decimal to hex in python 
Python :: how to download instagram profile picture with the help of python 
Python :: get span text selenium python 
Python :: np.random 
Python :: python iterate through string in reverse 
Python :: rename columns 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =