Closed StandUp2001 closed 2 hours ago
This is actually correct. You are looking at the files in the parent directory. So in this case the actual path to c3c is "../c3c", but you test if "./c3c" is a dir – which it isn't since it doesn't even exist. If you prepend ".." to the path before testing "path::is_dir" then it will work.
I think this should fix your issue.
Aha. To be fair that makes a lot of sense. And yes now it works with the "../{{folder}}" Thx for the answer
It's an easy enough mistake to make. I didn't see it at first either.
I have a test case that won't show directories as directories with
path::is_dir(path)
is called (I would preffere to have made it likepath.is_dir() -> bool
, but sidetrack)Test case
What it shows:
What I would expect: (With "You are in a directory %s")