Home | History | Annotate | Download | only in includes

Lines Matching refs:directory

3 """Send the contents of a directory as a MIME message."""
26 Send the contents of a directory as a MIME message.
34 parser.add_option('-d', '--directory',
36 help="""Mail the contents of the specified directory,
37 otherwise use the current directory. Only the regular
38 files in the directory are sent, and we don't recurse to
55 directory = opts.directory
56 if not directory:
57 directory = '.'
60 outer['Subject'] = 'Contents of directory %s' % os.path.abspath(directory)
65 for filename in os.listdir(directory):
66 path = os.path.join(directory, filename)