Skip to content
Snippets Groups Projects
Commit 3427976b authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer Committed by Vincent Petry
Browse files

strict comparison

parent 27bb968f
No related branches found
No related tags found
Loading
......@@ -54,11 +54,11 @@ abstract class Common implements \OC\Files\Storage\Storage {
}
public function is_dir($path) {
return $this->filetype($path) == 'dir';
return $this->filetype($path) === 'dir';
}
public function is_file($path) {
return $this->filetype($path) == 'file';
return $this->filetype($path) === 'file';
}
public function filesize($path) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment