升华文本FTP-编辑文件创建新文件

升华文本FTP-编辑文件创建新文件,ftp,sublimetext,editing,updating,Ftp,Sublimetext,Editing,Updating,我最近安装了sublime text 2插件“SFTP”,直接处理我的ftp服务器文件。 它正确地连接到我的ftp服务器,但是当我上传/保存文件时(为了保存对原始文件的编辑),它不会覆盖保存更新的原始文件,而是在我的ftp文件夹中创建一个新文件:如果我在保存时编辑“index.php”,升华文本将创建一个新文件“index.php.1”并且原始index.php仍然没有更新 我认为这可能是一个权限问题,但在我的服务器上,所有用户的文件夹都有777权限,文件也有777权限 这是我的sftp插件配置

我最近安装了sublime text 2插件“SFTP”,直接处理我的ftp服务器文件。 它正确地连接到我的ftp服务器,但是当我上传/保存文件时(为了保存对原始文件的编辑),它不会覆盖保存更新的原始文件,而是在我的ftp文件夹中创建一个新文件:如果我在保存时编辑“index.php”,升华文本将创建一个新文件“index.php.1”并且原始index.php仍然没有更新

我认为这可能是一个权限问题,但在我的服务器上,所有用户的文件夹都有777权限,文件也有777权限

这是我的sftp插件配置文件(sftp config.json):


谢谢你的帮助

这很可能是由于FTP服务器的设置。有关类似问题的答案,请参阅


如果您是通过公共网络传输文件,我建议您使用SFTP而不是FTP。

您是否尝试过在Sublime文本论坛上问这个问题?
{
// 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",
}