MCPcopy Create free account

hub / github.com/gtsteffaniak/filebrowser / functions

Functions1,657 in github.com/gtsteffaniak/filebrowser

↓ 4 callersMethodpurgeStaleEntries
(isRoot bool, isQuickScan bool)
backend/indexing/indexingScanner.go:685
↓ 4 callersFunctionpushTestIndexConfig
pushTestIndexConfig sets CacheDir and index SQL options for NewIndexDB; returned func restores prior values.
backend/database/sql/index_startup_test.go:39
↓ 4 callersFunctionremoveLeadingSlash
(str)
frontend/src/utils/url.js:154
↓ 4 callersFunctionsetupTestIndexForDeletion
setupTestIndexForDeletion creates a test index with mock data for deletion testing
backend/indexing/deletion_test.go:14
↓ 4 callersFunctionsetupWebDAVTestEnv
setupWebDAVTestEnv sets up the test environment with multiple sources and users
backend/http/webdav_test.go:27
↓ 4 callersFunctionshowToast
(type, message, options = {})
frontend/src/notify/message.js:506
↓ 4 callersMethodsyncStatsWithDB
()
backend/indexing/indexingScanner.go:566
↓ 4 callersFunctiontestIndexSQLConfig
(mode string)
backend/database/sql/index_startup_test.go:51
↓ 4 callersFunctionvalidateRequestOrigin
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 callersFunctionwebDAVHandler
webDAVHandler serves WebDAV requests.
backend/http/webdav.go:364
↓ 3 callersFunctionAlignComments
AlignComments formats each line of the YAML string independently.
backend/common/settings/generator.go:1274
↓ 3 callersFunctionApplyUserDefaults
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 callersFunctionCopyFile
CopyFile copies a file or directory from source to dest and returns an error if any.
backend/adapters/fs/fileutils/file.go:83
↓ 3 callersMethodDetectType
DetectType detects the MIME type of a file and updates the ItemInfo struct.
backend/indexing/iteminfo/conditions.go:429
↓ 3 callersFunctionExists
(path string)
backend/adapters/fs/files/files.go:995
↓ 3 callersMethodGetDirInfoCore
GetDirInfoCore is the consolidated implementation for both GetDirInfo and GetDirInfoViewableOnly
backend/indexing/indexingFiles.go:865
↓ 3 callersMethodGetFileInfo
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 callersMethodGetShareImagePartsHelper
(isBanner bool)
backend/database/share/extended.go:192
↓ 3 callersFunctionImageFitsPreviewSize
ImageFitsPreviewSize reports whether both image dimensions are within the preview bounds.
backend/preview/preview.go:560
↓ 3 callersFunctionInitialize
(source *settings.Source, mock bool, isNewDb bool)
backend/indexing/indexingFiles.go:381
↓ 3 callersFunctionInitialize
(configFile string)
backend/common/settings/config.go:31
↓ 3 callersFunctionIsDoc
(extension string)
backend/indexing/iteminfo/conditions.go:348
↓ 3 callersMethodIsShared
IsShared returns whether the given path and source have any shares in the cache.
backend/database/share/storage.go:312
↓ 3 callersMethodIsViewableWithParentCheck
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 callersMethodLoad
(ctx context.Context, key string)
backend/adapters/fs/diskcache/cache.go:9
↓ 3 callersMethodMkdir
(ctx context.Context, name string, perm os.FileMode)
backend/http/webdav.go:251
↓ 3 callersMethodPinnedNamesForDirectory
PinnedNamesForDirectory returns pinned item names for a source/index directory path.
backend/database/users/pinned_items.go:46
↓ 3 callersMethodReaddir
(count int)
backend/http/webdav.go:207
↓ 3 callersMethodRefreshDirectory
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 callersMethodRemoveDenyAll
RemoveDenyAll removes the deny all rule for a given source and index path.
backend/database/access/access.go:762
↓ 3 callersMethodRemoveGroupCascade
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 callersFunctionSave
(db *storm.DB, name string, from interface{})
backend/database/storage/bolt/utils.go:18
↓ 3 callersMethodSave
(*Settings)
backend/common/settings/storage.go:10
↓ 3 callersMethodSetFolderSize
SetFolderSize sets the size for a directory in the in-memory map
backend/indexing/mutate.go:371
↓ 3 callersFunctionUpdateSize
(given string)
backend/indexing/iteminfo/conditions.go:335
↓ 3 callersMethodWrite
Write is the method to write the response body and ensure WriteHeader is called
backend/http/middleware.go:706
↓ 3 callersFunctionaddFile
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 callersFunctionalignCeilToInterval
alignCeilToInterval rounds t up (UTC) to the next boundary where Unix time is a multiple of interval.
backend/indexing/indexingSchedulerLoop.go:12
↓ 3 callersFunctionapplyArchivedTimesAndPerm
applyArchivedTimesAndPerm sets permission bits and modification time from an archive entry using
backend/http/archive.go:973
↓ 3 callersFunctionaskYesNoQuestion
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 callersFunctionauthLockKey
(ip, username string)
backend/http/auth_ratelimit.go:170
↓ 3 callersMethodcheckFolderModtime
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 callersFunctioncloseNotification
(notificationId)
frontend/src/notify/message.js:277
↓ 3 callersFunctioncopyDestLabel
(page: import("@playwright/test").Page)
frontend/tests/playwright/general/file-actions.spec.ts:3
↓ 3 callersFunctioncreateZip
createZip writes a ZIP archive into w containing the given paths; access rules apply.
backend/http/archive.go:639
↓ 3 callersMethodfetchExtendedAttributes
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 callersFunctionget
(db *storm.DB, name string, to interface{})
backend/database/storage/bolt/utils.go:9
↓ 3 callersFunctiongetCacheKey
* 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 callersMethodgetComplexityUnlocked
getComplexityUnlocked calculates Complexity without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:241
↓ 3 callersFunctiongetFileExtension
(filename)
frontend/src/utils/files.js:1
↓ 3 callersMethodgetFileInfo
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 callersMethodgetFileName
(key string)
backend/adapters/fs/diskcache/file_cache.go:163
↓ 3 callersMethodgetFullScanTimeUnlocked
getFullScanTimeUnlocked calculates FullScanTime without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:225
↓ 3 callersMethodgetNumFilesUnlocked
getNumFilesUnlocked calculates NumFiles without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:193
↓ 3 callersFunctiongetStore
(configFile string)
backend/cmd/root.go:33
↓ 3 callersMethodhandlePathGone
handlePathGone removes a child scanner whose root directory was deleted.
backend/indexing/indexingScanner.go:536
↓ 3 callersMethodhandleUploadError
(upload, err)
frontend/src/utils/upload.js:640
↓ 3 callersMethodhasPending
()
frontend/src/utils/upload.js:606
↓ 3 callersFunctionisAllowedOnlyOfficeScheme
(scheme string)
backend/http/onlyOffice.go:417
↓ 3 callersFunctionisPathGone
(err error)
backend/indexing/indexingScanner.go:531
↓ 3 callersFunctionldapGroupMatchesAdmin
ldapGroupMatchesAdmin returns true if the LDAP group DN matches the configured admin group (full DN or CN value).
backend/http/ldap.go:167
↓ 3 callersFunctionneedsActorPasswordRetry
(err)
frontend/src/api/users.js:42
↓ 3 callersFunctionnormalizeKey
* Safe property access helpers for plain objects (prototype-pollution / injection-sink safe).
frontend/src/utils/object.js:5
↓ 3 callersFunctiononlyOfficeURLHostsMatch
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 callersFunctionopenShareAndExpectPath
( page: Page, expectedPathText: string, openShare: () => Promise<void>, options?: { timeout?: number }
frontend/tests/playwright/test-setup.ts:38
↓ 3 callersFunctionparseDefaultsFromEmbeddedYaml
parseDefaultsFromEmbeddedYaml creates a default config by parsing the embedded YAML template
backend/common/settings/generator.go:480
↓ 3 callersFunctionpreviewHelperFunc
(w http.ResponseWriter, r *http.Request, d *requestContext)
backend/http/preview.go:173
↓ 3 callersFunctionprintToken
(w http.ResponseWriter, r *http.Request, user *users.User)
backend/http/auth.go:369
↓ 3 callersFunctionremovePrefix
(path, prefix = "")
frontend/src/utils/url.js:70
↓ 3 callersMethodremoveScannerFromSlotLocked
(s *Scanner)
backend/indexing/indexingSchedulerLoop.go:36
↓ 3 callersMethodremoveSelf
removeSelf removes this scanner from the index's scanner map
backend/indexing/indexingScanner.go:554
↓ 3 callersMethodrunSerialScanPass
()
backend/indexing/indexingSchedulerLoop.go:211
↓ 3 callersMethodsetCache
setCache updates both caches for the given link. It acquires s.mu.
backend/database/share/storage.go:89
↓ 3 callersMethodsetCacheLocked
setCacheLocked updates both shareByHash and shareByPath for the given link. Caller must hold s.mu.
backend/database/share/storage.go:74
↓ 3 callersFunctionsetFilePreviewFlags
setFilePreviewFlags determines if a file should have a preview based on its type
backend/indexing/indexingFiles.go:1251
↓ 3 callersFunctionsetupSSE
()
frontend/src/notify/events.js:79
↓ 3 callersMethodshouldStop
shouldStop checks if processing should stop due to resource limits
backend/http/duplicates.go:89
↓ 3 callersFunctionshowPopup
(type, message, options = {})
frontend/src/notify/message.js:147
↓ 3 callersMethodstartProgressTimeout
(upload)
frontend/src/utils/upload.js:514
↓ 3 callersFunctionstartScannerStatusPoll
(t *testing.T, idx *indexing.Index, iter int)
backend/adapters/fs/files/file_test.go:708
↓ 3 callersFunctiontoStandardLocale
(locale: string)
frontend/src/i18n/index.ts:51
↓ 3 callersFunctionunixModeToFileMode
(u uint32)
backend/adapters/fs/fileutils/file.go:42
↓ 3 callersFunctionupdateUserScopes
(user *users.User)
backend/cmd/user.go:80
↓ 3 callersFunctionverifyActorPasswordForUserActions
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 callersFunctionverifyLdapConnection
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 callersFunctionwaitForScannerReady
(t *testing.T, idx *indexing.Index)
backend/adapters/fs/files/file_test.go:693
↓ 3 callersFunctionwithHashFileHelper
Middleware to handle file requests by hash and pass it to the handler
backend/http/middleware.go:53
↓ 3 callersFunctionwithRateLimit
withRateLimit registers a rate-limited route (same shape as withTimeout: option first, handler second).
backend/http/auth_ratelimit.go:84
↓ 3 callersFunctionwithRateLimitInternal
withRateLimitInternal applies token-bucket allow checks: when inactive, calls fn; when denied, 429 + Retry-After.
backend/http/auth_ratelimit.go:206
↓ 3 callersMethodwithStatsRLock
(fn func())
backend/indexing/indexingScanner.go:52
↓ 3 callersFunctionwithoutUser
(fn handleFunc)
backend/http/middleware.go:626
↓ 2 callersMethodAcquire
(ctx context.Context)
backend/ffmpeg/service.go:38
↓ 2 callersMethodAcquire
Acquire waits to acquire resources
backend/preview/memory_tracker.go:52
↓ 2 callersMethodAddApiToken
(userID uint, name string, tokenString string, metadata AuthToken)
backend/database/users/storage.go:29
↓ 2 callersMethodAuth
Auth is called to authenticate a request.
backend/auth/auth.go:17
↓ 2 callersMethodBannerURL
()
backend/database/share/extended.go:176
↓ 2 callersMethodCheckChildItemAccess
(response *iteminfo.FileInfo, index *indexing.Index, username string)
backend/database/access/helper.go:10
↓ 2 callersFunctionCheckPermissions
CheckPermissions validates user access and returns the resolved index path and user scope
backend/adapters/fs/files/files.go:109
↓ 2 callersMethodContainsSearchTerm
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 callersMethodDelete
(id interface{})
backend/database/users/storage.go:27
← previousnext →201–300 of 1,657, ranked by callers