summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker/utils
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/marker/utils')
-rw-r--r--xlators/features/marker/utils/syncdaemon/resource.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py
index f002f0eb1..d1a51ecb0 100644
--- a/xlators/features/marker/utils/syncdaemon/resource.py
+++ b/xlators/features/marker/utils/syncdaemon/resource.py
@@ -123,22 +123,7 @@ class Server(object):
for e in entries:
cls.purge(os.path.join(path, e))
if me_also:
- try:
- os.rmdir(path)
- except OSError:
- ex = sys.exc_info()[1]
- if ex.errno == ENOTDIR:
- try:
- os.unlink(path)
- return
- except OSError:
- ex = sys.exc_info()[1]
- if ex.errno != ENOENT:
- raise
- elif ex.errno == ENOENT:
- logging.debug ("Trying to delete a file which is not present")
- else:
- raise
+ os.rmdir(path)
@classmethod
def _create(cls, path, ctor):