Re: ftp connection and commands (directroy size, etc)

2006-04-14 Thread Stefan Schwarzer
Hi Arne On 2006-04-12 18:05, Arne wrote: > I am working on Windows XP and I want to do the following: > > 1. Connecting to a server using ftp > 2. Getting the directory structure and the size of each directory in the > root > 3. Getting the owner of a file > > All these steps I want to do with

Re: ftp connection and commands (directroy size, etc)

2006-04-13 Thread Fulvio
Alle 00:05, giovedì 13 aprile 2006, Arne ha scritto: > a=ftp.sendcmd('Dir') > By trying to get the directory with 'dir' Are you sure that the command 'dir" is understood via ftp? IF I'm not wrong would be 'ls' o list. But since I don't have such psckage on my system, it's recommended you read the

Re: ftp connection and commands (directroy size, etc)

2006-04-12 Thread maxou
Hello Arne > 1. Connecting to ftp is OK > 2. Getting the directory structure and the size of each directory in the > root -If you want to get the structure of your directory you can simply do this: print ftp.dir(path_of_your_directory) or by creating a list do this a=ftp.dir(path_of_your_direct

ftp connection and commands (directroy size, etc)

2006-04-12 Thread Arne
Hello everybody! I am working on Windows XP and I want to do the following: 1. Connecting to a server using ftp 2. Getting the directory structure and the size of each directory in the root 3. Getting the owner of a file All these steps I want to do with python. What I already have is: 1. Conn