Skip to content

Commit 8cd284a

Browse files
committed
dedupe
1 parent 036cc8e commit 8cd284a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xklb/media/dedupe.py

+1
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ def get_fs_duplicates(args) -> List[dict]:
348348
WHERE 1=1
349349
and coalesce(m1.time_deleted,0) = 0
350350
and m1.size > 0
351+
{"and type != 'directory'" if 'type' in m_columns else ''}
351352
{" ".join(args.filter_sql)}
352353
ORDER BY 1=1
353354
, length(m1.path)-length(REPLACE(m1.path, '{os.sep}', '')) DESC

0 commit comments

Comments
 (0)