AWS Thinkbox Discussion Forums

CheckPathMapping only swapping start but not slashes?

Calling Deadline.Scripting.RepositoryUtils.CheckPathMapping with a windows path string while running on a linux box.
The start of the string gets the drive name swap I expect, with the slashes defined in the repo path map config being correct. But the rest of the backslashes in the path remain and haven’t been swapped to forward slashes.
This is running in an event plugin at job finished. Any ideas?

Hey mmm,

I believe you have to run one more function call to get the slashes to be translated properly:

file_path = PathUtils.ToPlatformIndependentPath( file_path )

Here’s the scripting docs entry.

Let me know if this helps!

Cheers

Privacy | Site terms | Cookie preferences