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 '/' from the 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 <[email protected]>

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(-)


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Reply via email to