print(size, "bytes eaten")
break_tree(root_folder.linear)
+ del root_folder.linear
storage.store(root_folder)
if rcode:
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2023 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2023, 2024 PhiloSoft Design"
__license__ = "GNU GPL"
if report_stats:
print("Broytman delete bookmarks, Copyright (C)"
- " 2023 PhiloSoft Design")
+ " 2023, 2024 PhiloSoft Design")
if len(args) != 1:
sys.stderr.write("Usage: delete [-s] del_file\n")
del folder[_idx]
del root_folder.linear[idx]
break_tree(root_folder.linear)
+ del root_folder.linear
storage.store(root_folder)
if deleted and report_stats:
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2002-2023 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2002-2024 PhiloSoft Design"
__license__ = "GNU GPL"
if report_stats:
print("Broytman set-real_title, Copyright (C)"
- " 2003-2023 PhiloSoft Design")
+ " 2003-2024 PhiloSoft Design")
if args:
sys.stderr.write("set-real_title: too many arguments\n")
sys.stderr.write("Usage: set-real_title [-s]\n")
sys.stdout.flush()
root_folder = storage.load()
- from bkmk_objects import make_linear
+ from bkmk_objects import make_linear, break_tree
make_linear(root_folder)
objects = len(root_folder.linear)
sys.stdout.flush()
if changed:
+ break_tree(root_folder.linear)
+ del root_folder.linear
storage.store(root_folder)
if changed and report_stats:
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2003-2023 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2003-2024 PhiloSoft Design"
__license__ = "GNU GPL"
if report_stats:
print("Broytman set-title-list, Copyright (C)"
- " 2003-2023 PhiloSoft Design")
+ " 2003-2024 PhiloSoft Design")
if len(args) != 1:
sys.stderr.write("Usage: set-title-list [-s] title_list_file\n")
if changed:
break_tree(root_folder.linear)
+ del root_folder.linear
storage.store(root_folder)
if changed and report_stats:
if changed:
break_tree(root_folder.linear)
+ del root_folder.linear
storage.store(root_folder)
if changed and report_stats: