为了实现这个目的,我们定义一个文件是否修改过为本地时间戳大于等于远程服务器上的时间戳。
For our purposes, we define a file as having changed if the local timestamp is greater than or equal to the timestamp on the remote server.
下面来到步骤3,比较列出文件的时间戳和其所对应的远程时间戳,仅仅上载那些修改过的文件。
Let's move on to step three, comparing the timestamps of the listed files with the remote timestamps, and uploading only those files which have changed.
你的配置管理工具可以在工作文件上记录时间戳,所以它在你修改的时候可以监测到。
Your SCM tool may record the timestamp on the working file, so that it can later detect if you have modified it.
由于MLSD目录列表包含UTC格式的文件修改时间,因此这对于FTP客户端非常有用,当需要同步目录时,它可转换远程文件的时间戳到你的本地时间。
Since MLSD directory listing includes file modified time in UTC, so it's very useful for FTP client to converts remote file's timestamp to your Local time when synchronize folders.
由于MLSD目录列表包含UTC格式的文件修改时间,因此这对于FTP客户端非常有用,当需要同步目录时,它可转换远程文件的时间戳到你的本地时间。
Since MLSD directory listing includes file modified time in UTC, so it's very useful for FTP client to converts remote file's timestamp to your Local time when synchronize folders.
应用推荐