UI: Resolve symlinks when adding things to recent.

See #11131.  This also normalizes paths, captialization, etc. as
necessary.
This commit is contained in:
Unknown W. Brackets 2018-08-12 08:24:33 -07:00
parent 1fdb1f785a
commit 048afb6d24
7 changed files with 52 additions and 38 deletions

View file

@ -44,7 +44,7 @@ VirtualDiscFileSystem::VirtualDiscFileSystem(IHandleAllocator *_hAlloc, std::str
: basePath(_basePath),currentBlockIndex(0) {
#ifdef _WIN32
if (!endsWith(basePath, "\\"))
if (!endsWith(basePath, "\\") && !endsWith(basePath, "/"))
basePath = basePath + "\\";
#else
if (!endsWith(basePath, "/"))