Skip to content
Permalink
Browse files

#11749 Changing the way the filename is read

  • Loading branch information...
burzum authored and saeideng committed Feb 26, 2018
1 parent a6e1fad commit 1804a44e637748469b38d341226a3be2c911726d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Filesystem/File.php
@@ -86,7 +86,7 @@ public function __construct($path, $create = false, $mode = 0755)
$splInfo = new SplFileInfo($path);
$this->Folder = new Folder($splInfo->getPath(), $create, $mode);
if (!is_dir($path)) {
$this->name = $splInfo->getBasename();
$this->name = ltrim($splInfo->getFilename(), '/');
}
$this->pwd();
$create && !$this->exists() && $this->safe($path) && $this->create();

0 comments on commit 1804a44

Please sign in to comment.
You can’t perform that action at this time.