New issue 223 by xu4wang: ftp file name parser error
http://code.google.com/p/ulipad/issues/detail?id=223
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
The problem happens when opening file via FTP, all the file names are added
a time
before the real name in FTP window. as a result, file cannot be open since
wrong file
name points to non-existing file.
The FIX is:
add a ymdt format in the begining of the time parse re list fix it.see
attached.
re.compile(r'(?P<ymdt>^\d{1,4}.*?\d{1,2}.*?\d{1,2}.*?\s*\d{1,2}:\d{1,2}\s+)')
Attachments:
ftplistparse.py 4.4 KB