We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e901864 + fff323e commit df98393Copy full SHA for df98393
README.md
@@ -143,3 +143,10 @@ Returns the size of the given file in bytes.
143
`Note: Not all servers support this feature.`
144
145
- `$remoteFile`: The remote file.
146
+
147
+**time($remoteFile)**
148
149
+Returns the last modified time of the given file
150
+`Note: Not all servers support this feature.`
151
152
+ - `$remoteFile`: The remote file.
src/Anchu/Ftp/Ftp.php
@@ -253,4 +253,15 @@ public function size($remoteFile)
253
return ftp_size($this->connectionId, $remoteFile);
254
}
255
256
+ /**
257
+ * Returns the last modified time of the given file
258
+ *
259
+ * @param $remoteFile
260
+ * @return int
261
+ */
262
+ public function time($remoteFile)
263
+ {
264
+ return ftp_mdtm($this->connectionId, $remoteFile);
265
+ }
266
267
0 commit comments