diff options
| author | jvoisin | 2011-08-21 00:31:36 +0200 |
|---|---|---|
| committer | jvoisin | 2011-08-21 00:31:36 +0200 |
| commit | 03832504121769f54775a4b713d2a6518e143a7e (patch) | |
| tree | ac2fc7def89c42559823bc8cac9a94859f35b280 | |
| parent | 707cd87ecd9d7dd38498f5d87b52bc61875ad04b (diff) | |
Rever the atime/mtime stuff
Zip does not support format earlier than 1980,
so for now, I remove the "set atime/mtime to Epoch" function.
| -rw-r--r-- | mat/parser.py | 5 | ||||
| -rw-r--r-- | test/clean.docx | bin | 2619 -> 5842 bytes | |||
| -rw-r--r-- | test/clean.odt | bin | 32777 -> 33304 bytes | |||
| -rw-r--r-- | test/clean.pdf | bin | 11821 -> 11892 bytes | |||
| -rw-r--r-- | test/clean.tar.gz | bin | 5820 -> 5817 bytes | |||
| -rw-r--r-- | test/clean.zip | bin | 6041 -> 6041 bytes |
6 files changed, 1 insertions, 4 deletions
diff --git a/mat/parser.py b/mat/parser.py index 58dd7fa..edbdca1 100644 --- a/mat/parser.py +++ b/mat/parser.py | |||
| @@ -96,9 +96,6 @@ class GenericParser(object): | |||
| 96 | Do a backup of the file if asked, | 96 | Do a backup of the file if asked, |
| 97 | and change his creation/access date | 97 | and change his creation/access date |
| 98 | ''' | 98 | ''' |
| 99 | if self.backup is True: | 99 | if self.backup is False: |
| 100 | os.utime(self.output, (0, 0)) | ||
| 101 | else: | ||
| 102 | mat.secure_remove(self.filename) | 100 | mat.secure_remove(self.filename) |
| 103 | os.rename(self.output, self.filename) | 101 | os.rename(self.output, self.filename) |
| 104 | os.utime(self.filename, (0, 0)) | ||
diff --git a/test/clean.docx b/test/clean.docx index 0220399..0f1470c 100644 --- a/test/clean.docx +++ b/test/clean.docx | |||
| Binary files differ | |||
diff --git a/test/clean.odt b/test/clean.odt index 56df472..e3781e0 100644 --- a/test/clean.odt +++ b/test/clean.odt | |||
| Binary files differ | |||
diff --git a/test/clean.pdf b/test/clean.pdf index c95cfb0..01f3f30 100644 --- a/test/clean.pdf +++ b/test/clean.pdf | |||
| Binary files differ | |||
diff --git a/test/clean.tar.gz b/test/clean.tar.gz index 458f179..c1d25f7 100644 --- a/test/clean.tar.gz +++ b/test/clean.tar.gz | |||
| Binary files differ | |||
diff --git a/test/clean.zip b/test/clean.zip index f5db7ed..a34ca70 100644 --- a/test/clean.zip +++ b/test/clean.zip | |||
| Binary files differ | |||
