Technically it only solves this partially, since it only checks the
state of the immediate parent dir. ~/.foo/bar/secret.txt would still
show up. Recursively stat()ing the parent dirs is not very fun either.
I suggested some point in the past that we do a simple heuristic that
I think is "good enough" - simply checking if the path string contains
a "/." pattern.
Technically it only solves this partially, since it only checks the bar/secret. txt would still
state of the immediate parent dir. ~/.foo/
show up. Recursively stat()ing the parent dirs is not very fun either.
I suggested some point in the past that we do a simple heuristic that
I think is "good enough" - simply checking if the path string contains
a "/." pattern.