Kaba class LocalFileDB ed

...

Syntax ed

class LocalFileDB
    var files: LocalFile[]
    var to_delete: LocalFile[]

    # constructors
    func mut __init__()

    # functions
    func by_hash(hash: string) -> LocalFile
    func mut check_directories()
    func mut check_duplicate_paths()
    func mut check_empty_hashes()
    func mut check_empty_paths()
    func mut check_hash_collisions()
    func mut check_missing()
    func mut delete(f: LocalFile)
    func mut delete_later(f: LocalFile)
    func mut delete_now()
    func find_by_id(id: string) -> LocalFile
    func find_by_path(path: Path) -> LocalFile
    func find_by_tags(filter: string) -> LocalFile[]
    func get(path: Path, rec: bool) -> LocalFile[]
    func get_in_dir(dir: Path, recursive: bool) -> LocalFile[]
    func has_id(id: string) -> bool
    func has_path(path: Path) -> bool
    func mut load()
    func mut load_v1(lines: string[])
    func mut load_v2(lines: string[])
    func mut manual_init()
    func mut optimize()
    func mut rehash()
    func mut save(_files: LocalFile[])
    func mut save_all()
    func mut self_check()

Functions ed

func by_hash(hash: string) -> LocalFile
...

func mut check_directories()
...

func mut check_duplicate_paths()
...

func mut check_empty_hashes()
...

func mut check_empty_paths()
...

func mut check_hash_collisions()
...

func mut check_missing()
...

func mut delete(f: LocalFile)
...

func mut delete_later(f: LocalFile)
...

func mut delete_now()
...

func find_by_id(id: string) -> LocalFile
...

func find_by_path(path: Path) -> LocalFile
...

func find_by_tags(filter: string) -> LocalFile[]
...

func get(path: Path, rec: bool) -> LocalFile[]
...

func get_in_dir(dir: Path, recursive: bool) -> LocalFile[]
...

func has_id(id: string) -> bool
...

func has_path(path: Path) -> bool
...

func mut load()
...

func mut load_v1(lines: string[])
...

func mut load_v2(lines: string[])
...

func mut manual_init()
...

func mut optimize()
...

func mut rehash()
...

func mut save(_files: LocalFile[])
...

func mut save_all()
...

func mut self_check()
...

Elements ed

var files: LocalFile[]
...

var to_delete: LocalFile[]
...