Lines Matching refs:item
24 1. If src item is a symlink, and points to some item inside src,
26 2. If src item points to items outside src, then follow links to copy
28 3. Else copy src item to dest.
30 1. If src item is a symlink, then follow links to copy the original file
32 2. Else copy src item to dest.
50 for item in items:
51 srcname = os.path.join(src, item.name)
52 destname = os.path.join(dest, item.name)
53 is_symlink = item.is_symlink()
58 linkto = os.path.join(os.path.dirname(item), org_linkto)
66 if item.is_dir():
67 copy_tree(item,
72 shutil.copy(item, destname)
73 shutil.copymode(item, destname)
81 if item.is_dir():
83 item,
88 shutil.copy(item, destname)
89 shutil.copymode(item, destname)
93 elif item.is_dir():
94 copy_tree(item,
99 shutil.copy(item, destname)
100 shutil.copymode(item, destname)