Profile

Click to view full profile
Hi, I'm Veerapat Sriarunrungrueang, an expert in technology field, especially full stack web development and performance testing.This is my coding diary. I usually develop and keep code snippets or some tricks, and update to this diary when I have time. Nowadays, I've been giving counsel to many well-known firms in Thailand.
view more...

Wednesday, March 23, 2011

How to move file in Python shell

In the previous post, I introduced about change current directory in Python shell. Now, it's about move file in the shell by using "shutil.move(src, dst)" (shell util).
For example:
# Move text.txt from src to dst
shutil.move('/src/text.txt','/dst')
More detail at: http://docs.python.org/library/shutil.html

No comments:

Post a Comment