Heya
This is bit annoying but I cant figure it out.
So basically :
str = rendOutputFilename
Divide = filterString str "\\"
This gets me the location where I save images and split the string in to groups.
Now I want to remove the last group which is the name of file so all I will be left with is patch.
how can I now substract that last part and re-join it all so its proper "C:/test/test/test/"
Regards
Dariusz
Comments (1)
Comment policy
You are asking for this
This is wrong way.
This will be one of meny ways but is better from previous for sure
str = "C:\\SomeFolder\\SomeSubfolder\\image.jpg"
filepath = pathConfig.removePathLeaf str
newfilename = pathConfig.appendpath filepath "newimage.png"