Lines Matching refs:directory
3 """Send the contents of a directory as a MIME message."""
18 Send the contents of a directory as a MIME message.
23 parser.add_argument('-d', '--directory',
24 help="""Mail the contents of the specified directory,
25 otherwise use the current directory. Only the regular
26 files in the directory are sent, and we don't recurse to
39 directory = args.directory
40 if not directory:
41 directory = '.'
44 msg['Subject'] = f'Contents of directory {os.path.abspath(directory)}'
49 for filename in os.listdir(directory):
50 path = os.path.join(directory, filename)