Sorry about my stupid pseudonimity. Pseudonimity and file system software are worrysome combination
I have been using dpath for a year or two as a file system tool. I find myself missing it when it is not available.
If this is a novel thing, I would be very surprised. If someone can confirm that this is something novel, I would like to hear that.
Welcome to SWI-Prolog (threaded, 64 bits, version 8.3.15) SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software. Please run ?- license. for legal details. For online help and background, visit https://www.swi-prolog.org For built-in help, use ?- help(Topic). or ?- apropos(Word). ?- dpath:filetype('c:'/A/B/bin/B.exe). A = 'Program Files', B = swipl ; false. ?-
Also Linux version works (it cannot open a file browser for now, I have some plans to add it)
%this would find all directories under root dpath:dir( '/'/A)
table dpath:directory_directories/2 gives more speed, possibly this is not the best predicate to table.