Hello!
There is an option list-prefix-only
which says:
“When searching for files, all matching files are returned. Use this option to return only the largest common prefix path.”
Could anyone let me know what the “prefix path” means here?
Regards,
Toastwine
ts678
2
I don’t think this is used much (are you trying to achieve something in particular?). An example:
find "file://C:\Duplicati\duplicati-2.0.8.1_beta_2024-05-07\RUN\test 3\\" "*in_sub*" --dbpath="C:\Duplicati\duplicati-2.0.8.1_beta
_2024-05-07\RUN\LMJDEQVJMV.sqlite" --no-encryption=true
Listing contents 0 (7/24/2024 10:47:26 AM):
C:\backup source\sub1\in_sub1_folder.txt (2 bytes)
C:\backup source\sub1\sub2\sub3\in_sub3_folder.txt (2 bytes)
find "file://C:\Duplicati\duplicati-2.0.8.1_beta_2024-05-07\RUN\test 3\\" "*in_sub*" --dbpath="C:\Duplicati\duplicati-2.0.8.1_beta_2024-05-07\RUN\LMJDEQVJMV.sqlite" --no-encryption=true --list-prefix-only
Listing contents 0 (7/24/2024 10:47:26 AM):
C:\backup source\sub1\
find "file://C:\Duplicati\duplicati-2.0.8.1_beta_2024-05-07\RUN\test 3\\" "*in_sub3*" --dbpath="C:\Duplicati\duplicati-2.0.8.1_beta_2024-05-07\RUN\LMJDEQVJMV.sqlite" --no-encryption=true --list-prefix-only
Listing contents 0 (7/24/2024 10:47:26 AM):
C:\backup source\sub1\sub2\sub3\
so I think “common prefix path” means the path prefix (left part of path) shared by found paths.
1 Like