gofile

Module and tool to upload files to gofile.io
git clone https://code.alwayswait.ing/gofile.git
Log | Files | Refs

commit 05f4cdc547d0d395a8b3d97435a33914289cf483
parent 7947e30c3bc7ed48e9f68758217dd2f7965fa18e
Author: archiveanon <>
Date:   Fri,  2 Aug 2024 17:32:31 +0000

Ensure files are a list instead of whatever glob result

Diffstat:
Msrc/gofile/api.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gofile/api.py b/src/gofile/api.py @@ -225,7 +225,7 @@ def main(): files = [] if args.path.is_dir(): - files = args.path.glob("*") + files = list(args.path.glob("*")) if args.fast_link: # sort by ascending size so we can produce a link as fast as possible files = sorted(files, key=lambda x: os.stat(x).st_size)