Ticket #27 (closed defect: fixed)
Relative FTPHost.makedirs creates a wrong directory when run from a Windows client
| Reported by: | ftputiluser | Owned by: | schwa |
|---|---|---|---|
| Priority: | major | Milestone: | 2.2.4 |
| Component: | Library | Version: | |
| Keywords: | Windows, os.sep, FTPHost.sep | Cc: |
Description (last modified by schwa) (diff)
Example FTP Layout:
/data/test_results/ is the ftp users home directory.
If I use FTPHost.makedirs() as FTPHost.makedirs(‘1234/’) from a Windows machine it creates the /data/test_results/\data/test_results/1234/ directory.
This is caused by using os.sep to reinsert the seperator lost by the split.
Side note: The original description to which the first comment refers was
host.makedirs('foo') makes a directory named "\foo" on the server.
Change History
Note: See
TracTickets for help on using
tickets.
