lfss 0.12.2__py3-none-any.whl → 0.12.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- docs/changelog.md +5 -0
- lfss/cli/cli.py +17 -11
- {lfss-0.12.2.dist-info → lfss-0.12.3.dist-info}/METADATA +1 -1
- {lfss-0.12.2.dist-info → lfss-0.12.3.dist-info}/RECORD +6 -6
- {lfss-0.12.2.dist-info → lfss-0.12.3.dist-info}/WHEEL +0 -0
- {lfss-0.12.2.dist-info → lfss-0.12.3.dist-info}/entry_points.txt +0 -0
docs/changelog.md
CHANGED
lfss/cli/cli.py
CHANGED
@@ -112,7 +112,7 @@ def parse_arguments():
|
|
112
112
|
sp_query.add_argument("path", help="Path to query", nargs="+", type=str)
|
113
113
|
|
114
114
|
# delete
|
115
|
-
sp_delete = sp.add_parser("delete", help="Delete files or directories", aliases=["del"])
|
115
|
+
sp_delete = sp.add_parser("delete", help="Delete files or directories", aliases=["del", "rm"])
|
116
116
|
sp_delete.add_argument("path", help="Path to delete", nargs="+", type=str)
|
117
117
|
sp_delete.add_argument("-y", "--yes", action="store_true", help="Confirm deletion without prompt")
|
118
118
|
|
@@ -227,12 +227,12 @@ def main():
|
|
227
227
|
verbose=not args.quiet,
|
228
228
|
n_retries=args.retries,
|
229
229
|
interval=args.interval,
|
230
|
-
overwrite=args.overwrite
|
230
|
+
overwrite=args.conflict == "overwrite"
|
231
231
|
)
|
232
232
|
if not success:
|
233
233
|
print("\033[91mFailed to download: \033[0m", msg, file=sys.stderr)
|
234
|
-
|
235
|
-
elif args.command in ["delete", "del"]:
|
234
|
+
|
235
|
+
elif args.command in ["delete", "del", "rm"]:
|
236
236
|
if not args.yes:
|
237
237
|
print("You are about to delete the following paths:")
|
238
238
|
for path in args.path:
|
@@ -265,9 +265,10 @@ def main():
|
|
265
265
|
order_desc=args.reverse,
|
266
266
|
)
|
267
267
|
print_path_list(res, detailed=args.long)
|
268
|
-
if len(res.dirs) + len(res.files) == args.limit:
|
269
|
-
|
270
|
-
|
268
|
+
if args.path != "/" and len(res.dirs) + len(res.files) == args.limit:
|
269
|
+
_len_str = f"{args.offset + 1}-{args.offset + len(res.dirs) + len(res.files)}/{connector.count_dirs(args.path) + connector.count_files(args.path)}"
|
270
|
+
print(f"{_len_str} items listed.")
|
271
|
+
|
271
272
|
elif args.command in ["lsf", "list-f"]:
|
272
273
|
with catch_request_error(default_error_handler_dict(args.path)):
|
273
274
|
res = connector.list_files(
|
@@ -279,8 +280,12 @@ def main():
|
|
279
280
|
order_desc=args.reverse,
|
280
281
|
)
|
281
282
|
print_path_list(res, detailed=args.long)
|
282
|
-
if len(res) == args.limit:
|
283
|
-
|
283
|
+
if args.path != "/" and len(res) == args.limit:
|
284
|
+
if args.recursive:
|
285
|
+
_len_str = f"{args.offset + 1}-{args.offset + len(res)}/{connector.count_files(args.path, flat=True)}"
|
286
|
+
else:
|
287
|
+
_len_str = f"{args.offset + 1}-{args.offset + len(res)}/{connector.count_files(args.path)}"
|
288
|
+
print(f"{_len_str} files listed.")
|
284
289
|
|
285
290
|
elif args.command in ["lsd", "list-d"]:
|
286
291
|
with catch_request_error(default_error_handler_dict(args.path)):
|
@@ -293,8 +298,9 @@ def main():
|
|
293
298
|
order_desc=args.reverse,
|
294
299
|
)
|
295
300
|
print_path_list(res, detailed=args.long)
|
296
|
-
if len(res) == args.limit:
|
297
|
-
|
301
|
+
if args.path != "/" and len(res) == args.limit:
|
302
|
+
_len_str = f"{args.offset + 1}-{args.offset + len(res)}/{connector.count_dirs(args.path)}"
|
303
|
+
print(f"{_len_str} items listed.")
|
298
304
|
|
299
305
|
elif args.command in ["cat", "concatenate"]:
|
300
306
|
for _p in args.path:
|
@@ -4,7 +4,7 @@ docs/Enviroment_variables.md,sha256=CZ5DrrXSLU5RLBEVQ-gLMaOIuFthd7dEiTzO7ODrPRQ,
|
|
4
4
|
docs/Known_issues.md,sha256=ZqETcWP8lzTOel9b2mxEgCnADFF8IxOrEtiVO1NoMAk,251
|
5
5
|
docs/Permission.md,sha256=thUJx7YRoU63Pb-eqo5l5450DrZN3QYZ36GCn8r66no,3152
|
6
6
|
docs/Webdav.md,sha256=-Ja-BTWSY1BEMAyZycvEMNnkNTPZ49gSPzmf3Lbib70,1547
|
7
|
-
docs/changelog.md,sha256=
|
7
|
+
docs/changelog.md,sha256=WbbVBKfhGz1ehu7vVwGTVyF4g4Ko5glLXPr4bQwp-n8,2748
|
8
8
|
frontend/api.js,sha256=RqvwRWhYZx7_cDlyYgWzgJAr83RxH47WzY-5KL6aRX0,22670
|
9
9
|
frontend/index.html,sha256=-k0bJ5FRqdl_H-O441D_H9E-iejgRCaL_z5UeYaS2qc,3384
|
10
10
|
frontend/info.css,sha256=Ny0N3GywQ3a9q1_Qph_QFEKB4fEnTe_2DJ1Y5OsLLmQ,595
|
@@ -23,7 +23,7 @@ lfss/api/__init__.py,sha256=qHlQAnvw2y0FNZKhes6ikzItEEQvyJWFhVMs1GAqZiM,6822
|
|
23
23
|
lfss/api/connector.py,sha256=jMgYhSYQN0yDD9B1e35F7x6ZFswR3zBKQ19TkdP2KK0,17018
|
24
24
|
lfss/cli/__init__.py,sha256=OPJLYHvqsyNUoPRzW4ITKQ3hEuotx7u-OsN4Uoz1XvA,1132
|
25
25
|
lfss/cli/balance.py,sha256=fUbKKAUyaDn74f7mmxMfBL4Q4voyBLHu6Lg_g8GfMOQ,4121
|
26
|
-
lfss/cli/cli.py,sha256=
|
26
|
+
lfss/cli/cli.py,sha256=31s0sUmCdqYF9pbYsADb6TaThOs5qOga8P5Q1iUlA5I,15612
|
27
27
|
lfss/cli/cli_lib.py,sha256=QtXB8WsThz4R5n8ZpxKF_20L1BPBpvbC1QJBeuq0-NA,2866
|
28
28
|
lfss/cli/log.py,sha256=TBlt8mhHMouv8ZBUMHYfGZiV6-0yPdajJQ5mkGHEojI,3016
|
29
29
|
lfss/cli/panel.py,sha256=Xq3I_n-ctveym-Gh9LaUpzHiLlvt3a_nuDiwUS-MGrg,1597
|
@@ -48,7 +48,7 @@ lfss/svc/app_dav.py,sha256=DRMgByUAQ3gD6wL9xmikV5kvVmATN7QkxGSttFTYxFU,18245
|
|
48
48
|
lfss/svc/app_native.py,sha256=imqnuAoseTS2CmztUI0yQ0Jjq_jqbjxYG-_FFnYp6u0,11040
|
49
49
|
lfss/svc/common_impl.py,sha256=wlTQm8zEGAfyw9FJvK9zqgLQw47MzNq6IT3OgwdUaCw,13736
|
50
50
|
lfss/svc/request_log.py,sha256=v8yXEIzPjaksu76Oh5vgdbUEUrw8Kt4etLAXBWSGie8,3207
|
51
|
-
lfss-0.12.
|
52
|
-
lfss-0.12.
|
53
|
-
lfss-0.12.
|
54
|
-
lfss-0.12.
|
51
|
+
lfss-0.12.3.dist-info/METADATA,sha256=ExulCVxgaGu45rI_ksXQhAtuvVnXfjbLnWCTTL9gLuM,2818
|
52
|
+
lfss-0.12.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
53
|
+
lfss-0.12.3.dist-info/entry_points.txt,sha256=M4ubn9oLYcTc9wxlLKWwljnluStPWpCDlCGuTVU8twg,255
|
54
|
+
lfss-0.12.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|