diff --git a/updog/__main__.py b/updog/__main__.py index 63d5e06..e20c811 100644 --- a/updog/__main__.py +++ b/updog/__main__.py @@ -106,7 +106,7 @@ def home(path): if os.path.exists(requested_path): # Read the files try: - directory_files = process_files(os.scandir(requested_path), base_directory) + directory_files = process_files(os.scandir(requested_path), base_directory, requested_path) except PermissionError: abort(403, 'Read Permission Denied: ' + requested_path) diff --git a/updog/templates/home.html b/updog/templates/home.html index c53a4a3..d15c2d8 100644 --- a/updog/templates/home.html +++ b/updog/templates/home.html @@ -75,14 +75,20 @@