Normalized the treatment of directories and files between the documents and the files implementation.
Implemented smuggler console options for files.