diff options
| author | Barry Warsaw | 2009-01-20 20:54:22 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-20 20:54:22 -0500 |
| commit | f6cfc823e94fdc67114534ffa4e0e058d6ee81b8 (patch) | |
| tree | dae9158dfd05fd92b18d576f57b78e906196a42b /mailman/pipeline/scrubber.py | |
| parent | 0c996b693d1cc68d864acc313ba919197717a413 (diff) | |
| download | mailman-f6cfc823e94fdc67114534ffa4e0e058d6ee81b8.tar.gz mailman-f6cfc823e94fdc67114534ffa4e0e058d6ee81b8.tar.zst mailman-f6cfc823e94fdc67114534ffa4e0e058d6ee81b8.zip | |
More cleanup.
Diffstat (limited to 'mailman/pipeline/scrubber.py')
| -rw-r--r-- | mailman/pipeline/scrubber.py | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/mailman/pipeline/scrubber.py b/mailman/pipeline/scrubber.py index fa9c8577f..3ee68612f 100644 --- a/mailman/pipeline/scrubber.py +++ b/mailman/pipeline/scrubber.py @@ -48,6 +48,7 @@ from mailman.core.errors import DiscardMessage from mailman.core.plugins import get_plugin from mailman.i18n import _ from mailman.interfaces.handler import IHandler +from mailman.utilities.filesystem import makedirs # Path characters for common platforms @@ -378,25 +379,6 @@ URL: $url -def makedirs(dir): - # Create all the directories to store this attachment in and try to make - # sure that the permissions of the directories are set correctly. - try: - os.makedirs(dir, 02775) - except OSError, e: - if e.errno == errno.EEXIST: - return - # Some systems such as FreeBSD ignore mkdir's mode, so walk the just - # created directories and try to set the mode, ignoring any OSErrors that - # occur here. - for dirpath, dirnames, filenames in os.walk(dir): - try: - os.chmod(dirpath, 02775) - except OSError: - pass - - - def save_attachment(mlist, msg, dir, filter_html=True): fsdir = os.path.join(config.PRIVATE_ARCHIVE_FILE_DIR, mlist.fqdn_listname, dir) |
