We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce0bee6 commit 7c52814Copy full SHA for 7c52814
src/FileSystem/DirHandler.php
@@ -48,7 +48,16 @@ public function __construct(string $path) {
48
* @return bool
49
*/
50
public function isReadable(): bool {
51
- return \is_dir($this->path) && \is_readable($this->path);
+ return $this->isDir() && \is_readable($this->path);
52
+ }
53
+
54
+ /**
55
+ * whether the dir is present
56
+ *
57
+ * @return bool
58
+ */
59
+ public function isDir(): bool {
60
+ return is_dir($this->path);
61
}
62
63
/**
@@ -80,7 +89,7 @@ public function setPath(string $path) {
80
89
81
90
82
91
public function isWritable(): bool {
83
- return \is_dir($this->path) && \is_writable($this->path);
92
+ return $this->isDir() && \is_writable($this->path);
84
93
85
94
86
95
0 commit comments