Changeset 719
- Timestamp:
- 2008-07-30 18:51:51 (4 months ago)
- Files:
-
- trunk/_test_real_ftp.py (modified) (4 diffs)
- trunk/ftputil.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/_test_real_ftp.py
r718 r719 59 59 Return the expected time shift in seconds assuming the server 60 60 uses UTC in its listings and the client uses local time. 61 61 62 62 This is needed because Pure-FTPd meanwhile seems to insist that 63 63 the displayed time for files is in UTC. … … 76 76 # and client use the same timezone 77 77 EXPECTED_TIME_SHIFT = utc_local_time_shift() 78 78 79 79 80 class RealFTPTest(unittest.TestCase): … … 159 160 host.rmdir('_dir1_') 160 161 161 def test_makedirs_from_no t_root_directory(self):162 def test_makedirs_from_non_root_directory(self): 162 163 # this is a testcase for issue #22, see 163 164 # http://ftputil.sschwarzer.net/trac/ticket/22 … … 190 191 host.chdir(host.pardir) 191 192 host.rmdir('/_dir1_') 193 194 def test_makedirs_from_non_root_directory_fake_windows_os(self): 195 saved_sep = os.sep 196 os.sep = '\\' 197 try: 198 self.test_makedirs_from_non_root_directory() 199 finally: 200 os.sep = saved_sep 192 201 193 202 def test_makedirs_of_existing_directory(self): trunk/ftputil.py
r713 r719 610 610 for index in range(1, len(directories)): 611 611 # re-insert the separator which got lost by using `path.split` 612 next_directory = os.sep + self.path.join(*directories[:index+1])612 next_directory = self.sep + self.path.join(*directories[:index+1]) 613 613 try: 614 614 self.mkdir(next_directory)
