What is a portable, correct, efficient way to check whether one path is "under" -- a direct or indirect subdir of -- another path?
AFAICT there's no racket/path function for this. Over the years I've done various ad hoc things that seem non-ideal. Including: 1. Use path->string and regexp. 2. Use split-path recursively. 3. Use a combination of explode-path and split-common-prefix. And either way, hopefully remember to use simple-form-path to cleanse/simplify the starting inputs. I was thinking about this again when looking at security guards recently. A file guard might want to check that the access is in/under some approved directory. This usage ups the ante on both speed and correctness. Any suggestions or advice? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.