ContentMgr findFile() from just file name

The challenge is to  reference user-facing files when the user has moved them into a non-default directory structure. Consider the following example:

I am able to find the absolute dir for a file "\Props\DAZ Material Ball\Material Ball Scene.duf" which exists in a mapped content dir:

var foundFile = oContentMgr.findFile( "\\Props\\DAZ Material Ball\\Material Ball Scene.duf", DzContentMgr.AllDirsAndCloud );

I have been struggling with finding the absolute dir for the file "Material Ball Scene.duf" if the user has moved the user-facing file to a different mapped directory, for example "\Props\Testing\Material Ball Scene.duf". I've tried passing only the filename since the script would not know the different dir that the user moved the file to, but have so far been unsuccessful.

Is there any way to find the absolute dir of DUF file if the user has moved the file into a custom mapped dir?

If anyone has any solutions, or ideas, please let me know - thanks! 

- Greg

 

Comments

Sign In or Register to comment.