Show More
@@ -396,14 +396,13 b' class fsbackend(abstractbackend):' | |||||
396 | path = self._join(fname) |
|
396 | path = self._join(fname) | |
397 | if os.path.islink(path): |
|
397 | if os.path.islink(path): | |
398 | return (os.readlink(path), (True, False)) |
|
398 | return (os.readlink(path), (True, False)) | |
399 |
isexec |
|
399 | isexec = False | |
400 | try: |
|
400 | try: | |
401 | isexec = os.lstat(path).st_mode & 0100 != 0 |
|
401 | isexec = os.lstat(path).st_mode & 0100 != 0 | |
402 | islink = os.path.islink(path) |
|
|||
403 | except OSError, e: |
|
402 | except OSError, e: | |
404 | if e.errno != errno.ENOENT: |
|
403 | if e.errno != errno.ENOENT: | |
405 | raise |
|
404 | raise | |
406 |
return (self.opener.read(fname), ( |
|
405 | return (self.opener.read(fname), (False, isexec)) | |
407 |
|
406 | |||
408 | def setfile(self, fname, data, mode, copysource): |
|
407 | def setfile(self, fname, data, mode, copysource): | |
409 | islink, isexec = mode |
|
408 | islink, isexec = mode |
General Comments 0
You need to be logged in to leave comments.
Login now