Lines Matching refs:directory
650 This serves files from the current directory and any of its
667 def __init__(self, *args, directory=None, **kwargs):
668 if directory is None:
669 directory = os.getcwd()
670 self.directory = os.fspath(directory)
777 """Helper to produce a directory listing (absent index.html).
789 "No permission to list directory")
817 # Note: a link to a directory displays with @ and links with /
837 (e.g. drive or directory names) are ignored. (XXX They should
853 path = self.directory
856 # Ignore components that are not a simple file/directory name
1072 # dissect the part after the directory name into a script name &
1283 parser.add_argument('-d', '--directory', default=os.getcwd(),
1284 help='serve this directory '
1285 '(default: current directory)')
1311 directory=args.directory)