Changeset 7540
- Timestamp:
- Oct 1, 2009, 8:03:34 AM (15 years ago)
- Location:
- misc/tools/tar_file
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/tools/tar_file/README
r6642 r7540 1 1 This directory contains the 'tar_file.py' program used to create tarred and 2 2 zipped files from a file or directory. 3 4 Why do we have this instead of using the tools provided under Linux? We need 5 something that works under Windows as well. 3 6 4 7 Use it so: -
misc/tools/tar_file/tar_file.py
r6632 r7540 18 18 19 19 # get program name 20 # does this work on 20 # does this work on Windows? 21 21 Prog_Name = os.path.basename(sys.argv[0]) 22 22 -
misc/tools/tar_file/untar_file.py
r6642 r7540 1 1 #!/usr/bin/env python 2 2 3 '''A program to create tar files from a file or directory.'''3 '''A program to untar files created by tar_file.py.''' 4 4 5 5 import sys … … 19 19 20 20 # get program name 21 # does this work on 21 # does this work on Windows? 22 22 Prog_Name = os.path.basename(sys.argv[0]) 23 23 … … 26 26 usage() 27 27 28 # create the tarred/compressed file28 # untar the file into the current or specified directory 29 29 if len(sys.argv) == 2: 30 30 untar_file(sys.argv[1])
Note: See TracChangeset
for help on using the changeset viewer.