howto? "def create_dir"
Steve Holden
sholden at holdenweb.com
Mon Dec 2 10:26:14 EST 2002
More information about the Python-list mailing list
Mon Dec 2 10:26:14 EST 2002
- Previous message (by thread): howto? "def create_dir"
- Next message (by thread): howto? "def create_dir"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Michael Stenner" <mstenner at phy.duke.edu> wrote in message news:mailman.1038840003.14210.python-list at python.org... > On Mon, Dec 02, 2002 at 03:07:06PM +0100, Michael wrote: > > Hi all, > > > > I´ve wrote a script in python which remote copies zip files from a server to > > another server. It upacks it and delete the source-zipfile from the remote > > server. All is working fine. But since a few days i got stuck with a simple > > "mkdir-def"... > > > > I have built a class in python containig several def´s for copying, > > upacking, checking.... Now I am trying to write a def which creates a > > directory at the destination server. On the destination server I ve got a > > directory (/some/where) where the upacked files are placed. I would like to > > write a def which creates the dest.dir (/some/where/destdir) where the name > > "destdir" is taken from a variable within the class. > > > > After studying 4 python books and asking google for help without success, I > > have to ask the python gurus in this group :-) Thanks in advanced. > > What kind of server? NFS, SMB, FTP.... Perhaps you could give us a > couple of your other functions so we can see what you're doing? You > might also want to include what operating systems you're using (for > client and server). > The OP should take a look at the docs fdor os.mkdir() and os.makedirs(), one of which will probably do what is required without the need to define any functions if normal file access is available. If it's FTp then things become a little trickier but not impossible. And thanks to the OP for taking the time to search for an answer before posting to the group :-) regards ----------------------------------------------------------------------- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/pwp/ Previous .sig file retired to www.homeforoldsigs.com -----------------------------------------------------------------------
- Previous message (by thread): howto? "def create_dir"
- Next message (by thread): howto? "def create_dir"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list