76 $permission = substr($permission, 0, 4);
77 $permission = str_pad($permission, 4,
'0', STR_PAD_LEFT);
78 $this->targetPermission = $permission;
151 if ($result ===
true) {
152 return new FlashMessage(
157 return new FlashMessage(
159 .
'. This only is a problem if files and folders within this node cannot be written.',
189 return substr($permissions, -4);
211 if ($path ===
null) {
215 if (strpos($path, $publicPath, 0) !== 0) {
216 throw new Exception\InvalidArgumentException(
217 'Public path is not first part of given path',
221 $relativePath = substr($path, strlen($publicPath), strlen($path));
223 if ($relativePath ===
'') {
226 return $relativePath;