Fix file selection on Windows. Fixes #1319
1) Unable to select sql file through query tool on windows OS. In file_manager.js, we are stripping initial slash '/'
fromthe path obtained, but we should not strip if it is full path like 'c:/path/to/dir/filename.ext'
2) Handle directory path if STORAGE_DIR is None. Proper checks are added.
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=9e8e3fc78755df29ac466234c880d848894eebab
Author: Surinder Kumar <surinder.kumar@enterprisedb.com>
Modified Files
--------------
web/pgadmin/misc/file_manager/__init__.py | 4 +++-
.../templates/file_manager/js/file_manager.js | 22 ++++++++++++++++------
web/pgadmin/tools/sqleditor/__init__.py | 2 ++
web/pgadmin/utils/paths.py | 6 +++---
4 files changed, 24 insertions(+), 10 deletions(-)