From 28134d47f8e1ecf7d050126bbfbea7215f5eb701 Mon Sep 17 00:00:00 2001 From: gigamaster <1905497+gigamaster@users.noreply.github.com> Date: Sat, 19 Oct 2024 16:42:09 +0200 Subject: [PATCH] test remove actions --- src/main.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/main.py b/src/main.py index 6e574fd..e7eb4d5 100755 --- a/src/main.py +++ b/src/main.py @@ -88,6 +88,8 @@ def main(): # File Icon - Link - Size - Time droot = (dirname == '.' and filename) path = (dirname == '.' and filename or dirname + '/' + filename) + # Join Parent Directory and File Name with extension + fName = os.path.join(pDirname, filename) f.write("" + "\n" + "" + @@ -95,22 +97,17 @@ def main(): "" + get_file_size(path) + "" + "" + get_file_modified_time(path) + "") - if droot: - f.write("\n") - else: + if not droot: # File Preview - filename relative path f.write("" + "" + - "") - - # Join Parent Directory and File Name with extension - fName = os.path.join(pDirname, filename) - # GitHub Link to Edit - f.write("" + + "" + + "" + "" + - # GitHubBlob URL to Download "" + - "\n") + "\n") + else: + f.write("\n") f.write("\n".join([ get_template_foot(),