Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gtsteffaniak/filebrowser
/ functions
Functions
1,657 in github.com/gtsteffaniak/filebrowser
⨍
Functions
1,657
◇
Types & classes
228
↓ 4 callers
Method
purgeStaleEntries
(isRoot bool, isQuickScan bool)
backend/indexing/indexingScanner.go:685
↓ 4 callers
Function
pushTestIndexConfig
pushTestIndexConfig sets CacheDir and index SQL options for NewIndexDB; returned func restores prior values.
backend/database/sql/index_startup_test.go:39
↓ 4 callers
Function
removeLeadingSlash
(str)
frontend/src/utils/url.js:154
↓ 4 callers
Function
setupTestIndexForDeletion
setupTestIndexForDeletion creates a test index with mock data for deletion testing
backend/indexing/deletion_test.go:14
↓ 4 callers
Function
setupWebDAVTestEnv
setupWebDAVTestEnv sets up the test environment with multiple sources and users
backend/http/webdav_test.go:27
↓ 4 callers
Function
showToast
(type, message, options = {})
frontend/src/notify/message.js:506
↓ 4 callers
Method
syncStatsWithDB
()
backend/indexing/indexingScanner.go:566
↓ 4 callers
Function
testIndexSQLConfig
(mode string)
backend/database/sql/index_startup_test.go:51
↓ 4 callers
Function
validateRequestOrigin
validateRequestOrigin validates that the request's origin is in the configured whitelist. Returns an error if the origin is not allowed.
backend/http/webauthn.go:220
↓ 4 callers
Function
webDAVHandler
webDAVHandler serves WebDAV requests.
backend/http/webdav.go:364
↓ 3 callers
Function
AlignComments
AlignComments formats each line of the YAML string independently.
backend/common/settings/generator.go:1274
↓ 3 callers
Function
ApplyUserDefaults
Apply applies the default options to a user. Keep this in sync with [UserDefaults]: every user-facing field there should be copied here (except Defaul
backend/common/settings/settings.go:74
↓ 3 callers
Function
CopyFile
CopyFile copies a file or directory from source to dest and returns an error if any.
backend/adapters/fs/fileutils/file.go:83
↓ 3 callers
Method
DetectType
DetectType detects the MIME type of a file and updates the ItemInfo struct.
backend/indexing/iteminfo/conditions.go:429
↓ 3 callers
Function
Exists
(path string)
backend/adapters/fs/files/files.go:995
↓ 3 callers
Method
GetDirInfoCore
GetDirInfoCore is the consolidated implementation for both GetDirInfo and GetDirInfoViewableOnly
backend/indexing/indexingFiles.go:865
↓ 3 callers
Method
GetFileInfo
GetFileInfo is the unified entry point for retrieving file/directory information It applies index rules (IsViewable/ShouldSkip) but does NOT check use
backend/indexing/indexingFiles.go:511
↓ 3 callers
Method
GetShareImagePartsHelper
(isBanner bool)
backend/database/share/extended.go:192
↓ 3 callers
Function
ImageFitsPreviewSize
ImageFitsPreviewSize reports whether both image dimensions are within the preview bounds.
backend/preview/preview.go:560
↓ 3 callers
Function
Initialize
(source *settings.Source, mock bool, isNewDb bool)
backend/indexing/indexingFiles.go:381
↓ 3 callers
Function
Initialize
(configFile string)
backend/common/settings/config.go:31
↓ 3 callers
Function
IsDoc
(extension string)
backend/indexing/iteminfo/conditions.go:348
↓ 3 callers
Method
IsShared
IsShared returns whether the given path and source have any shares in the cache.
backend/database/share/storage.go:312
↓ 3 callers
Method
IsViewableWithParentCheck
IsViewableWithParentCheck checks if a path is viewable by walking up the directory tree Used for API requests where we need to check inherited rules f
backend/indexing/indexingFiles.go:1358
↓ 3 callers
Method
Load
(ctx context.Context, key string)
backend/adapters/fs/diskcache/cache.go:9
↓ 3 callers
Method
Mkdir
(ctx context.Context, name string, perm os.FileMode)
backend/http/webdav.go:251
↓ 3 callers
Method
PinnedNamesForDirectory
PinnedNamesForDirectory returns pinned item names for a source/index directory path.
backend/database/users/pinned_items.go:46
↓ 3 callers
Method
Readdir
(count int)
backend/http/webdav.go:207
↓ 3 callers
Method
RefreshDirectory
RefreshDirectory re-indexes a directory and updates its cached size Use recursive=true for copy/move operations to capture entire tree Use recursive=f
backend/indexing/indexingFiles.go:1032
↓ 3 callers
Method
RemoveDenyAll
RemoveDenyAll removes the deny all rule for a given source and index path.
backend/database/access/access.go:762
↓ 3 callers
Method
RemoveGroupCascade
RemoveGroupCascade removes a group from either the allow or deny list for a given path and all its subpaths. This is used for cascade delete operation
backend/database/access/access.go:1133
↓ 3 callers
Function
Save
(db *storm.DB, name string, from interface{})
backend/database/storage/bolt/utils.go:18
↓ 3 callers
Method
Save
(*Settings)
backend/common/settings/storage.go:10
↓ 3 callers
Method
SetFolderSize
SetFolderSize sets the size for a directory in the in-memory map
backend/indexing/mutate.go:371
↓ 3 callers
Function
UpdateSize
(given string)
backend/indexing/iteminfo/conditions.go:335
↓ 3 callers
Method
Write
Write is the method to write the response body and ensure WriteHeader is called
backend/http/middleware.go:706
↓ 3 callers
Function
addFile
addFile adds a file or directory to a tar or zip archive, respecting access rules. For shares, path is already resolved; for users, access is checked
backend/http/archive.go:501
↓ 3 callers
Function
alignCeilToInterval
alignCeilToInterval rounds t up (UTC) to the next boundary where Unix time is a multiple of interval.
backend/indexing/indexingSchedulerLoop.go:12
↓ 3 callers
Function
applyArchivedTimesAndPerm
applyArchivedTimesAndPerm sets permission bits and modification time from an archive entry using
backend/http/archive.go:973
↓ 3 callers
Function
askYesNoQuestion
askYesNoQuestion prompts the user with a yes/no question and returns a boolean. It retries until valid input ("yes", "y", "no", "n") is received. The
backend/cmd/cli.go:287
↓ 3 callers
Function
authLockKey
(ip, username string)
backend/http/auth_ratelimit.go:170
↓ 3 callers
Method
checkFolderModtime
checkFolderModtime checks if a folder's modtime changed since last scan Returns (changed, error) where changed=true if modtime is after lastScanned, f
backend/indexing/indexingScanner.go:592
↓ 3 callers
Function
closeNotification
(notificationId)
frontend/src/notify/message.js:277
↓ 3 callers
Function
copyDestLabel
(page: import("@playwright/test").Page)
frontend/tests/playwright/general/file-actions.spec.ts:3
↓ 3 callers
Function
createZip
createZip writes a ZIP archive into w containing the given paths; access rules apply.
backend/http/archive.go:639
↓ 3 callers
Method
fetchExtendedAttributes
fetchExtendedAttributes loads indexed subfolder has_preview for the current directory from GetMetadataInfo (database). The listed directory's own HasP
backend/indexing/indexingFiles.go:745
↓ 3 callers
Function
get
(db *storm.DB, name string, to interface{})
backend/database/storage/bolt/utils.go:9
↓ 3 callers
Function
getCacheKey
* Generate cache key from source, path, size, and modified date * @param {string} source - The source identifier (null for shares) * @param {string}
frontend/src/utils/imageCache.js:25
↓ 3 callers
Method
getComplexityUnlocked
getComplexityUnlocked calculates Complexity without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:241
↓ 3 callers
Function
getFileExtension
(filename)
frontend/src/utils/files.js:1
↓ 3 callers
Method
getFileInfo
getFileInfo retrieves file information with caching and access control requestPath should NOT include user scope - FileInfoFaster applies it internall
backend/http/webdav.go:56
↓ 3 callers
Method
getFileName
(key string)
backend/adapters/fs/diskcache/file_cache.go:163
↓ 3 callers
Method
getFullScanTimeUnlocked
getFullScanTimeUnlocked calculates FullScanTime without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:225
↓ 3 callers
Method
getNumFilesUnlocked
getNumFilesUnlocked calculates NumFiles without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:193
↓ 3 callers
Function
getStore
(configFile string)
backend/cmd/root.go:33
↓ 3 callers
Method
handlePathGone
handlePathGone removes a child scanner whose root directory was deleted.
backend/indexing/indexingScanner.go:536
↓ 3 callers
Method
handleUploadError
(upload, err)
frontend/src/utils/upload.js:640
↓ 3 callers
Method
hasPending
()
frontend/src/utils/upload.js:606
↓ 3 callers
Function
isAllowedOnlyOfficeScheme
(scheme string)
backend/http/onlyOffice.go:417
↓ 3 callers
Function
isPathGone
(err error)
backend/indexing/indexingScanner.go:531
↓ 3 callers
Function
ldapGroupMatchesAdmin
ldapGroupMatchesAdmin returns true if the LDAP group DN matches the configured admin group (full DN or CN value).
backend/http/ldap.go:167
↓ 3 callers
Function
needsActorPasswordRetry
(err)
frontend/src/api/users.js:42
↓ 3 callers
Function
normalizeKey
* Safe property access helpers for plain objects (prototype-pollution / injection-sink safe).
frontend/src/utils/object.js:5
↓ 3 callers
Function
onlyOfficeURLHostsMatch
onlyOfficeURLHostsMatch reports whether callback and configured URLs refer to the same OnlyOffice host, comparing hostname and effective port (so offi
backend/http/onlyOffice.go:437
↓ 3 callers
Function
openShareAndExpectPath
( page: Page, expectedPathText: string, openShare: () => Promise<void>, options?: { timeout?: number }
frontend/tests/playwright/test-setup.ts:38
↓ 3 callers
Function
parseDefaultsFromEmbeddedYaml
parseDefaultsFromEmbeddedYaml creates a default config by parsing the embedded YAML template
backend/common/settings/generator.go:480
↓ 3 callers
Function
previewHelperFunc
(w http.ResponseWriter, r *http.Request, d *requestContext)
backend/http/preview.go:173
↓ 3 callers
Function
printToken
(w http.ResponseWriter, r *http.Request, user *users.User)
backend/http/auth.go:369
↓ 3 callers
Function
removePrefix
(path, prefix = "")
frontend/src/utils/url.js:70
↓ 3 callers
Method
removeScannerFromSlotLocked
(s *Scanner)
backend/indexing/indexingSchedulerLoop.go:36
↓ 3 callers
Method
removeSelf
removeSelf removes this scanner from the index's scanner map
backend/indexing/indexingScanner.go:554
↓ 3 callers
Method
runSerialScanPass
()
backend/indexing/indexingSchedulerLoop.go:211
↓ 3 callers
Method
setCache
setCache updates both caches for the given link. It acquires s.mu.
backend/database/share/storage.go:89
↓ 3 callers
Method
setCacheLocked
setCacheLocked updates both shareByHash and shareByPath for the given link. Caller must hold s.mu.
backend/database/share/storage.go:74
↓ 3 callers
Function
setFilePreviewFlags
setFilePreviewFlags determines if a file should have a preview based on its type
backend/indexing/indexingFiles.go:1251
↓ 3 callers
Function
setupSSE
()
frontend/src/notify/events.js:79
↓ 3 callers
Method
shouldStop
shouldStop checks if processing should stop due to resource limits
backend/http/duplicates.go:89
↓ 3 callers
Function
showPopup
(type, message, options = {})
frontend/src/notify/message.js:147
↓ 3 callers
Method
startProgressTimeout
(upload)
frontend/src/utils/upload.js:514
↓ 3 callers
Function
startScannerStatusPoll
(t *testing.T, idx *indexing.Index, iter int)
backend/adapters/fs/files/file_test.go:708
↓ 3 callers
Function
toStandardLocale
(locale: string)
frontend/src/i18n/index.ts:51
↓ 3 callers
Function
unixModeToFileMode
(u uint32)
backend/adapters/fs/fileutils/file.go:42
↓ 3 callers
Function
updateUserScopes
(user *users.User)
backend/cmd/user.go:80
↓ 3 callers
Function
verifyActorPasswordForUserActions
verifyActorPasswordForUserPut requires URL-encoded X-Password when the authenticated actor uses password login. Callers should invoke this only when t
backend/http/users.go:361
↓ 3 callers
Function
verifyLdapConnection
VerifyLdapConnection tests that the LDAP server is reachable, can bind (if credentials set), and responds to a search.
backend/common/settings/auth.go:235
↓ 3 callers
Function
waitForScannerReady
(t *testing.T, idx *indexing.Index)
backend/adapters/fs/files/file_test.go:693
↓ 3 callers
Function
withHashFileHelper
Middleware to handle file requests by hash and pass it to the handler
backend/http/middleware.go:53
↓ 3 callers
Function
withRateLimit
withRateLimit registers a rate-limited route (same shape as withTimeout: option first, handler second).
backend/http/auth_ratelimit.go:84
↓ 3 callers
Function
withRateLimitInternal
withRateLimitInternal applies token-bucket allow checks: when inactive, calls fn; when denied, 429 + Retry-After.
backend/http/auth_ratelimit.go:206
↓ 3 callers
Method
withStatsRLock
(fn func())
backend/indexing/indexingScanner.go:52
↓ 3 callers
Function
withoutUser
(fn handleFunc)
backend/http/middleware.go:626
↓ 2 callers
Method
Acquire
(ctx context.Context)
backend/ffmpeg/service.go:38
↓ 2 callers
Method
Acquire
Acquire waits to acquire resources
backend/preview/memory_tracker.go:52
↓ 2 callers
Method
AddApiToken
(userID uint, name string, tokenString string, metadata AuthToken)
backend/database/users/storage.go:29
↓ 2 callers
Method
Auth
Auth is called to authenticate a request.
backend/auth/auth.go:17
↓ 2 callers
Method
BannerURL
()
backend/database/share/extended.go:176
↓ 2 callers
Method
CheckChildItemAccess
(response *iteminfo.FileInfo, index *indexing.Index, username string)
backend/database/access/helper.go:10
↓ 2 callers
Function
CheckPermissions
CheckPermissions validates user access and returns the resolved index path and user scope
backend/adapters/fs/files/files.go:109
↓ 2 callers
Method
ContainsSearchTerm
returns true if the file name contains the search term returns file type if the file name contains the search term returns size of file/dir if the fil
backend/indexing/iteminfo/mediaMeta.go:319
↓ 2 callers
Method
Delete
(id interface{})
backend/database/users/storage.go:27
← previous
next →
201–300 of 1,657, ranked by callers