Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add convenience method to check if a file is in the hidden folder
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Jan 27, 2023
commit 69f39b2c3384fce23bf5bc5d84b7bf748d2a53eb
4 changes: 4 additions & 0 deletions lib/private/Files/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -798,4 +798,8 @@ public static function getETag($path) {
public static function getHiddenFolderName(): string {
return '.hidden_' . \OC_Util::getInstanceId();
}

public static function isPathHidden($path): string {
return strpos($path, self::getHiddenFolderName()) !== false;
}
}