I found a weird behaviour in the RelativePath(file) node. Given an absolute path and a base path, it constructs a relative path, but includes the last folder in the base path.
If you actually connect relative path and absolute path using the same base path, shouldn’t the output be the same as the absolute path to begin with?
I dont understand why the folder of the base path is included in the relative path. Shouldn’t base path + relative path = Absolute path? Right now thats not what is happening.
Maybe there is something I am not considering, but it seems very odd. In my specific example I am trying to get the names of the subfolders in a folder, and it seemed logical that given a list of subfolders as the absolute paths and the parent folder as the base path, should result in just the names of the folders, yet it includes the parent folder in the relative paths!?
Here is basically the help patch of relative path showing what I think is not correct behaviour. In the example the relative path should just be “\Text.v4p”, since if I am in folder C:\temp (the base path), then including the folder name again wouldn’t work.