Hi there,
I'm trying to figure out how to move a file from one directory to another (all C drive). I've read that shutil is the module to go with. Ok, I think "move" command is what I'm looking for. When I'm trying to run simple tests in command line python that looks like this:
i get an error "NameError: name 'move' is not defined"
I've looked inside shutil.py module and there is a module "move". My guess is that I probably need to use the form like:
is that correct? or what's the right way to use "move" ?
Thank you
I'm trying to figure out how to move a file from one directory to another (all C drive). I've read that shutil is the module to go with. Ok, I think "move" command is what I'm looking for. When I'm trying to run simple tests in command line python that looks like this:
Code:
import shutil move('C:\\....', 'C:\\....')
I've looked inside shutil.py module and there is a module "move". My guess is that I probably need to use the form like:
Code:
something.move('C:\\....', 'C:\\....')
Thank you
Comment