def get_listing(path):
if path != "<STR_LIT:.>":<EOL><INDENT>listing = sorted(['<STR_LIT:..>'] + os.listdir(path))<EOL><DEDENT>else:<EOL><INDENT>listing = sorted(os.listdir(path))<EOL><DEDENT>return listing<EOL>
Returns the list of files and directories in a path.
Prepents a ".." (parent directory link) if path is not current dir.