diff --git a/voussoirkit/touch.py b/voussoirkit/touch.py index 5e10d5d..78091ed 100644 --- a/voussoirkit/touch.py +++ b/voussoirkit/touch.py @@ -11,12 +11,12 @@ from voussoirkit import winglob def touch(glob_pattern): filenames = winglob.glob(glob_pattern) if len(filenames) == 0: - safeprint.safeprint(glob_pattern) open(glob_pattern, 'a').close() + return [glob_pattern] else: for filename in filenames: - safeprint.safeprint(filename) os.utime(filename) + return filenames if __name__ == '__main__': glob_patterns = [clipext.resolve(x).strip() for x in sys.argv[1:]]