Opening not existing ftp folders via ftp.cwd() in python -


i have such case - i'm working ftp of ftplib in python.

i have list of ftp pathes, need check existence. going check ftp.cwd() method + try\except, - when exception raised, folder doesn't exist. pwd of folders, don't exist in fact (i check ftpzilla) return 250 cwd command successful , in ftp.nlst() list of folder on 1 or more folders above.

according filezilla , ftp.nlst("order\dvd\pictures") there "games" folder. if make ftp.cwd("order\dvd\pictures\cars\ferari\"), returns 250 cwd command successful , ftp.nstl() equal ftp.nlst("order\dvd\pictures").

such case not in every folder, - when trying enter non-existing folders, no such file or directory right.

maybe there "hidden" folders on ftp cannot found neither filezilla, nor ftp.nslt(), can reached fpt.cwd()?


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -