Lines Matching full:os
13 import os
45 if not os.path.exists(create_links):
46 os.makedirs(create_links)
47 symbase = os.path.basename(directory)
48 symlink = create_links + os.path.sep + symbase
49 if not os.path.exists(symlink):
50 os.symlink(directory, symlink)
55 for root, dirs, _ in os.walk(directory, topdown=True):
59 targetdirectory = os.path.join(root, subdir)
60 reldir = os.path.relpath(targetdirectory, directory)
61 linkname = symbase + '_' + reldir.replace(os.path.sep, '_')
62 symlink = create_links + os.path.sep + linkname
63 if not os.path.exists(symlink):
64 os.symlink(targetdirectory, symlink)
67 dirlist.append(os.path.join(root, subdir))
80 if os.path.exists(out_file):
100 if os.path.exists(trigger):
101 os.utime(trigger, None)