Open i0nut02 opened 5 months ago
Good implementation of take_parent_dir! The previous approach "parent = os.path.realpath(os.path.join(path, ".."))" was quite straightforward, but this one is more elegant although it adds some complexity to the algorithm.
it doesn't work for paths like /p1/p2/../p3 and /p1/p2/.., but i think that we don't need this feature for now.