Hi everybody!
I want to get list of files and folders with permission from ftp!
This is my code:
from ftplib import FTP
ftp=FTP('ftp.domain.com','username','pass')
a=ftp.dir('')
after runnig : (Output)
drwxrwxrwx 1 user group 0 Mar 01 14:29 Backup
drwxrwxrwx 1 user group 0 Mar 01 14:29 logs
drwxrwxrwx 1 user group 0 Apr 17 18:01 www
but when I run it , the "a" variable is empty! and I cannot use it.
I want to get files and folders with permissions from ftp and write these in file(a.txt)!
please help me.