python: ftp get directory creation date -
i want connect ftp server directorys "01-26-2011" created on daily basis (no specific pattern, "jan2011-26" possible directory name). inside directory again directories. want write script checks every 10 minutes if new directory created. question is: how can get/read ftp directory creation date? best way (efficient way) check them?
if have 1000 directories on ftp root (i mean: jan2011-26, jan2011-25, jan2011-24, jan2011-23, jan2011-22 , on...) bad check every single folder (i don't want that). it's fine if script checks last 5 directories (so jan2011-26, jan2011-25, jan2011-24, jan2011-23, jan2011-22), has check if new directory created in these 5 folders. how can that? thanks!
depending on details need, can use ftplib list directories listing. save them list , compare in 10 min 2 sorted lists. can digg deeper , search in ftplib attributes. don't know ftplib, here solution.
Comments
Post a Comment