2012-08-31 53 views
1

我最近安裝了崇高的文本2插件「SFTP」直接與我的FTP服務器文件。 它正確地連接到我的ftp服務器,但是當我上傳/保存文件(爲了將編輯保存到原始文件)它不會覆蓋保存更新的原始文件,而是在我的文件中創建一個新文件FTP文件夾:如果我編輯「index.php」時,我保存它崇高的文本創建一個新的文件「index.php.1」和原始index.php保持未更新。崇高的文本FTP - 編輯文件創建一個新的

我很難說這可能是一個權限問題,但在我的服務器上,所有用戶都有777個文件夾,文件也有777個權限。

這裏是我的SFTP pluguin配置文件(SFTP-config.json):

{ 
// The tab key will cycle through the settings when first created 
// Visit http://wbond.net/sublime_packages/sftp/settings for help 

// sftp, ftp or ftps 
"type": "ftp", 

"save_before_upload": true, 
"upload_on_save": true, 
"sync_down_on_open": true, 
"sync_skip_deletes": false, 
"confirm_downloads": false, 
"confirm_sync": true, 
"confirm_overwrite_newer": false, 

"host": "mobility.unixdata.es", 
"user": "admin", 
"password": "mlcud", 
//"port": "22", 

"remote_path": "/Escriptori/htdocs/betamobility/testing", 
"ignore_regexes": [ 
    "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json", 
    "sftp-settings\\.json", "/venv/", "\\.svn", "\\.hg", "\\.git", 
    "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini" 
], 
"file_permissions": "777", 
"dir_permissions": "777", 

//"extra_list_connections": 0, 

"connect_timeout": 30, 
//"keepalive": 120, 
//"ftp_passive_mode": true, 
//"ssh_key_file": "~/.ssh/id_rsa", 
//"sftp_flags": ["-F", "/path/to/ssh_config"], 

//"preserve_modification_times": false, 
//"remote_time_offset_in_hours": 0, 
//"remote_encoding": "utf-8", 
//"remote_locale": "C", 
} 

感謝您的幫助!

+0

你有沒有在Sublime Text論壇上試過這個問題? –

回答