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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -