Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
 def execute (self, logger):
     loggedos.link (logger, self.src, self.dest)
Exemplo n.º 4
0
 def execute(self, logger):
     loggedos.link(logger, self.src, self.dest)