Skip to content

Commit

Permalink
add path method to get the full path of the given file
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Aug 2, 2017
1 parent 7dd8d2d commit 9efaf00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Filesystem/FilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,17 @@ public function lastModified($path)
return $this->driver->getTimestamp($path);
}

/**
* Get the full path for the file at the given path.
*
* @param string $path
* @return string
*/
public function path($path)
{
return $this->driver->getAdapter()->getPathPrefix().$path;
}

/**
* Get the URL for the file at the given path.
*
Expand Down

0 comments on commit 9efaf00

Please sign in to comment.