Skip to content
Closed
Changes from 1 commit
Commits
File filter

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
Small update regarding previous commit
  • Loading branch information
Iltar van der Berg committed Jan 4, 2013
commit b5aca5537a8dee490e90395658358b3bc63c332d
3 changes: 2 additions & 1 deletion Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ public function exists($files)
public function touch($files, $time = null, $atime = null)
{
foreach ($this->toIterator($files) as $file) {
if (true !== @touch($file, $time, $atime)) {
$touch = $time ? @touch($file, $time, $atime) : @touch($file);
if (true !== $touch) {
throw new IOException(sprintf('Failed to touch %s', $file));
}
}
Expand Down