Lines Matching defs:os
18 import os
28 for f in os.listdir(sourcedir):
29 source_f = os.path.join(sourcedir, f)
30 target_f = os.path.join(targetdir, f)
31 if not os.path.isfile(source_f):
32 if os.path.isdir(source_f):
37 if os.path.exists(targetdir):
42 elif not os.path.exists(targetdir):
43 os.makedirs(targetdir)
52 for root, dirs, files in os.walk(source_dir):
54 pathfile = os.path.join(root, file)