equal
deleted
inserted
replaced
517 """Return the name of the group with the given gid. |
517 """Return the name of the group with the given gid. |
518 |
518 |
519 If gid is None, return the name of the current group.""" |
519 If gid is None, return the name of the current group.""" |
520 return None |
520 return None |
521 |
521 |
|
522 def readlink(pathname): |
|
523 return pycompat.fsencode(os.readlink(pycompat.fsdecode(pathname))) |
|
524 |
522 def removedirs(name): |
525 def removedirs(name): |
523 """special version of os.removedirs that does not remove symlinked |
526 """special version of os.removedirs that does not remove symlinked |
524 directories or junction points if they actually contain files""" |
527 directories or junction points if they actually contain files""" |
525 if listdir(name): |
528 if listdir(name): |
526 return |
529 return |