Hi,
Just wanna say your solution is awesome. But with an edge case "file1.ext" just file name without a directory, here is a easy fix for it.
And after sleeping, I find another bug which happens when "tabs < len(dirs)" and what replaced dirs[-1] is a file after ascending. If so, we also need to update max_len in case file name is very long.
Hi, Just wanna say your solution is awesome. But with an edge case "file1.ext" just file name without a directory, here is a easy fix for it.
And after sleeping, I find another bug which happens when "tabs < len(dirs)" and what replaced dirs[-1] is a file after ascending. If so, we also need to update max_len in case file name is very long.
Thank you for your time. Cheers