UnityStandaloneFileBrowser icon indicating copy to clipboard operation
UnityStandaloneFileBrowser copied to clipboard

Crash when trying to open root directory

Open ozonexo3 opened this issue 6 years ago • 0 comments

https://github.com/gkngkc/UnityStandaloneFileBrowser/blob/def85a6d7fe6af4ee0b4f2693a62d321ba511a14/Assets/StandaloneFileBrowser/StandaloneFileBrowserWindows.cs#L129

It crash for "C://" directory. We can add that before to fix it:

			if (System.IO.Path.GetPathRoot(directoryPath) == directoryPath)
				return directoryPath;

ozonexo3 avatar Jun 10 '18 17:06 ozonexo3