Skip to content

Commit bbc4e4b

Browse files
committed
add convenience method to check if a file is in the hidden folder
Signed-off-by: Robin Appelman <[email protected]>
1 parent bbbbebf commit bbc4e4b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/private/Files/Filesystem.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,4 +818,8 @@ public static function getETag($path) {
818818
public static function getHiddenFolderName(): string {
819819
return '.hidden_' . \OC_Util::getInstanceId();
820820
}
821+
822+
public static function isPathHidden($path): string {
823+
return strpos($path, self::getHiddenFolderName()) !== false;
824+
}
821825
}

0 commit comments

Comments
 (0)