예제 #1
0
 def rmdir(self, path):
     """
     Remove (delete) the directory path. Only works when the directory is
     empty, otherwise, OSError is raised. In order to remove whole
     directory trees, rmtree() can be used.
     """
     ret = api.glfs_rmdir(self.fs, path)
     if ret < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
예제 #2
0
 def rmdir(self, path):
     """
     Remove (delete) the directory path. Only works when the directory is
     empty, otherwise, OSError is raised. In order to remove whole
     directory trees, rmtree() can be used.
     """
     ret = api.glfs_rmdir(self.fs, path)
     if ret < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
예제 #3
0
 def rmdir(self, path):
     ret = api.glfs_rmdir(self.fs, path)
     if ret < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
     return ret
예제 #4
0
 def rmdir(self, path):
     ret = api.glfs_rmdir(self.fs, path)
     if ret < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
     return ret