yasirkula / UnitySimpleFileBrowser

A uGUI based runtime file browser for Unity 3D (draggable and resizable)
MIT License
817 stars 111 forks source link

Suggestion: Expose DocumentsContract.isChildDocument #73

Closed juh9870 closed 1 year ago

juh9870 commented 1 year ago

As you mentioned in discord, there is a function DocumentsContract.isChildDocument, which allows to check if document is inside another document. It would be very helpful to have this function exposed for easy access.

yasirkula commented 1 year ago

Can you update the plugin with the version inside this zip archive and give FileBrowserHelpers.IsPathChildOfAnother a try on both standalone (testing in Editor suffices) and Android: SimpleFileBrowser.zip. Please check if the function returns true not only for direct descendants but also for grand descendants.

juh9870 commented 1 year ago

Sure, I will try to check it tomorrow, thanks!

yasirkula commented 1 year ago

Added with https://github.com/yasirkula/UnitySimpleFileBrowser/commit/1e8a795d1569bcdfbab4d1983f1da9cd559c3741