equal
deleted
inserted
replaced
272 dirs, file = dirs[:-1], dirs[-1] |
272 dirs, file = dirs[:-1], dirs[-1] |
273 if dirs and not dirs[0]: |
273 if dirs and not dirs[0]: |
274 dirs = dirs[1:] |
274 dirs = dirs[1:] |
275 try: |
275 try: |
276 fw = self.connect_ftp(user, passwd, host, port, dirs) |
276 fw = self.connect_ftp(user, passwd, host, port, dirs) |
277 type = file and 'I' or 'D' |
277 if file: |
|
278 type = 'I' |
|
279 else: |
|
280 type = 'D' |
|
281 |
278 for attr in attrs: |
282 for attr in attrs: |
279 attr, value = splitattr(attr) |
283 attr, value = splitattr(attr) |
280 if attr.lower() == 'type' and \ |
284 if attr.lower() == 'type' and \ |
281 value in ('a', 'A', 'i', 'I', 'd', 'D'): |
285 value in ('a', 'A', 'i', 'I', 'd', 'D'): |
282 type = value.upper() |
286 type = value.upper() |