(self, cont_path)
return True
Save one mountpoint
Save one mountpoint
Save one mountpoint
def save(self, cont_path):
        """Save one mountpoint"""
        if cont_path not in self.mountpoints:
            return True
        orig_mountpoint = self.mountpoints[cont_path].replace('/', '#')
        curr_mountpoint = cont_path.replace('/', '#')
        curr_mountpoint = self.mountpoints_orig_dir + '/' + curr_mountpoint
        try:
            if not os.path.exists(curr_mountpoint):
                os.symlink(orig_mountpoint, curr_mountpoint)
        except (IOError, OSError):
            return False
        return True
def save ( self , cont_path ) : if cont_path not in self . mountpoints : return True orig_mountpoint = self . mountpoints [ cont_path ] . replace ( '/' , '#' ) curr_mountpoint = cont_path . replace ( '/' , '#' ) curr_mountpoint = self . mountpoints_orig_dir + '/' + curr_mountpoint try : if not os . path . exists ( curr_mountpoint ) : os . symlink ( orig_mountpoint , curr_mountpoint ) except ( IOError , OSError ) : return False return True