@@ 41-49 (lines=9) @@ | ||
38 | $this->baseDir = $baseDir; |
|
39 | } |
|
40 | ||
41 | public function isDocument(Path $p) |
|
42 | { |
|
43 | $documentPath = $this->baseDir.$p->getPath(); |
|
44 | if (false === file_exists($documentPath) || !is_file($documentPath)) { |
|
45 | return false; |
|
46 | } |
|
47 | ||
48 | return true; |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * Get the full absolute location of the document on the filesystem. |
|
@@ 145-153 (lines=9) @@ | ||
142 | return $deletedObjects; |
|
143 | } |
|
144 | ||
145 | public function isFolder(Path $p) |
|
146 | { |
|
147 | $folderPath = $this->baseDir.$p->getPath(); |
|
148 | if (false === file_exists($folderPath) || !is_dir($folderPath)) { |
|
149 | return false; |
|
150 | } |
|
151 | ||
152 | return true; |
|
153 | } |
|
154 | ||
155 | public function getFolder(Path $p) |
|
156 | { |