Jump to content

Calling upon system files.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
anix

anix

    Newbie

  • Members
  • PipPip
  • 15 posts
Hello all, I'm trying to write a relatively simple python script that when executed takes an existing file in a directory and places it elsewhere, My question is how can i tell python to work with such files.

for example:

say I want to take a file from home/user/Downloads to home/user/Desktop

Edited by anix, 27 November 2010 - 07:26 AM.

Posted Image

#2
Flying Dutchman

Flying Dutchman

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 890 posts
I think shutil module can help you out.
A conclusion is where you got tired of thinking.
#define class struct    // All is public.

#3
anix

anix

    Newbie

  • Members
  • PipPip
  • 15 posts
This is exactly what i was looking for dutchman! Thanks +Rep
Posted Image