def add_g_file_names(logger, file_name): dir_name = os.path.dirname(file_name) base_name = os.path.basename(file_name) gnu_base_name = 'g' + base_name if '-' in base_name: gnu_base_name = re.sub('-([^/g][^/-]*)$', r'-g\1', base_name) gnu_file_name = os.path.join(dir_name, gnu_base_name) loggedos.link(logger, file_name, gnu_file_name)
def add_g_file_names (logger, file_name): dir_name = os.path.dirname (file_name) base_name = os.path.basename (file_name) gnu_base_name = 'g' + base_name if '-' in base_name: gnu_base_name = re.sub ('-([^/g][^/-]*)$', r'-g\1', base_name) gnu_file_name = os.path.join (dir_name, gnu_base_name) loggedos.link (logger, file_name, gnu_file_name)
def execute (self, logger): loggedos.link (logger, self.src, self.dest)
def execute(self, logger): loggedos.link(logger, self.src, self.dest)