File: _copy.py

package info (click to toggle)
twisted 25.5.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,560 kB
  • sloc: python: 203,171; makefile: 200; sh: 92; javascript: 36; xml: 31
file content (10 lines) | stat: -rw-r--r-- 166 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
"""
A cross-platform copying tool that supports globbing.
"""

import glob
import shutil
import sys

for f in glob.glob(sys.argv[1]):
    shutil.copy(f, sys.argv[2])