Esempio n. 1
0
 def symlink(self, source, link_name):
     """
     Create a symbolic link 'link_name' which points to 'source'
     """
     ret = api.glfs_symlink(self.fs, source, link_name)
     if ret < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))
Esempio n. 2
0
 def symlink(self, source, link_name):
     """
     Create a symbolic link 'link_name' which points to 'source'
     """
     ret = api.glfs_symlink(self.fs, source, link_name)
     if ret < 0:
         err = ctypes.get_errno()
         raise OSError(err, os.strerror(err))