mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
* posixpath.py: Fix border cases in normpath ('/foo/..' should return '/')
* ftplib.py: made cwd() use 'CDUP' when dirname is '..' * FL.py: added new constant FL_PLACE_FULLSCREEN
This commit is contained in:
parent
f1dc566328
commit
df5638662d
4 changed files with 14 additions and 6 deletions
|
@ -336,7 +336,11 @@ class FTP:
|
|||
|
||||
# Change to a directory
|
||||
def cwd(self, dirname):
|
||||
self.voidcmd('CWD ' + dirname)
|
||||
if dirname == '..':
|
||||
cmd = 'CDUP'
|
||||
else:
|
||||
cmd = 'CWD ' + dirname
|
||||
self.voidcmd(cmd)
|
||||
|
||||
# Retrieve the size of a file
|
||||
def size(self, filename):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue