Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
stat now handles mtime for root shares, simplify hasUpdated
  • Loading branch information
butonic authored and LukasReschke committed Aug 29, 2016
commit bd5ee22d8f549969e0673480c05043beb3cbe013
10 changes: 2 additions & 8 deletions apps/files_external/lib/smb.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,8 @@ public function unlink($path) {
*/
public function hasUpdated($path, $time) {
$this->log('enter: '.__FUNCTION__."($path, $time)");
$stat = $this->stat($path);
if ($stat === false) {
Util::writeLog('wnd', 'hasUpdated failed -> storage not available', Util::ERROR);
throw $this->leave(__FUNCTION__, new StorageNotAvailableException());
} else {
$actualTime = $this->filemtime($path);
$result = $actualTime > $time;
}
$actualTime = $this->filemtime($path);
$result = $actualTime > $time;
return $this->leave(__FUNCTION__, $result);
}

Expand Down