|
|
|
@ -11,13 +11,13 @@ def get_app_class(template):
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
|
for file in os.listdir(path): |
|
|
|
|
console.write_str(self.console, file + "\n") |
|
|
|
|
console.print(self.console, file) |
|
|
|
|
except OSError as e: |
|
|
|
|
try: |
|
|
|
|
os.stat(path) |
|
|
|
|
console.write_str(self.console, path + "\n") |
|
|
|
|
console.print(self.console, path) |
|
|
|
|
except OSError: |
|
|
|
|
console.write_str(self.console, f"ls: cannot access '{path}': No such file or directory\n") |
|
|
|
|
console.print(self.console, f"ls: cannot access '{path}': No such file or directory") |
|
|
|
|
|
|
|
|
|
self.exit() |
|
|
|
|
|
|
|
|
|