We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7604a1a commit c9cf126Copy full SHA for c9cf126
1 file changed
src/Node.php
@@ -29,7 +29,9 @@ public function getDirname(): string
29
30
public function getPath(): string
31
{
32
- return $this->directory.'/'.$this->basename;
+ return ($this->directory == DIRECTORY_SEPARATOR) ?
33
+ $this->directory.$this->basename :
34
+ $this->directory.DIRECTORY_SEPARATOR.$this->basename;
35
}
36
37
/**
0 commit comments