Skip to main content

Hi all,

When I try to replace "back slash" in a directory path to "forward slash" it works in all but the last occurence. Tried with Regex as well.

Since I'm passing the path to a PythonCaller where I have to use double forward slash I get output similar to this: "C://Folder//AnotherFolder//3rdFolder/lastfolder".

 

 

I tried using AttributeSplitter and ListConcatenator and use // as delimiter.

The output is the same and the last occurence doesn't have double forward slash: "C://Folder//AnotherFolder//3rdFolder/lastfolder".

 

Is there some fundamental logic to this I'm not familiar with or is it a bug?

Also I run the 2021.2 Beta, don't know if it could have anything to do with that.

 

Thanks!

I just noticed that since I have my path as a published parameter it changes the last occurence of back slash to forward slash automatically when I run the workspace. This explains the above mentioned behaviour so it's not a bug.


Reply