Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

Commit

Permalink
add support for local directory #1
Browse files Browse the repository at this point in the history
  • Loading branch information
thecotne committed Apr 7, 2015
1 parent f804866 commit 8f1c085
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion browseWithWinSCP.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
pass

if winscpExe:
startWinscpCommand = '"'+ winscpExe + '"' + ' {type}://{user}:{password}@{host}:{port}"{remote_path}"'
startWinscpCommand = '"'+ winscpExe + '"' + ' {type}://{user}:{password}@{host}:{port}"{remote_path}" /rawsettings LocalDirectory="{local_path}"'

class browse_with_winscpCommand(sublime_plugin.WindowCommand):
def run(self, edit = None):
Expand Down
4 changes: 3 additions & 1 deletion dirConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ def getConfig(name = 'sftp-config.json'):
_file = getConfigFile(file_path, name)
try:
if isString(_file):
return parseJson(_file)
conf = parseJson(_file)
conf['local_path'] = os.path.dirname(_file)
return conf
except:
pass
return None

0 comments on commit 8f1c085

Please sign in to comment.