MCPcopy Create free account

hub / github.com/gtsteffaniak/filebrowser / functions

Functions1,657 in github.com/gtsteffaniak/filebrowser

↓ 2 callersFunctiongenerateShortUUID
()
backend/http/share.go:678
↓ 2 callersFunctiongetFileSizeByMode
getFileSizeByMode returns file size based on config mode
backend/indexing/unix.go:20
↓ 2 callersMethodgetFileSizeForDisplay
getFileSizeForDisplay returns file size with appropriate calculation based on config
backend/indexing/indexingFiles.go:1162
↓ 2 callersMethodgetLastIndexedUnlocked
getLastIndexedUnlocked calculates LastIndexed without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:291
↓ 2 callersFunctiongetParentPath
(path string)
backend/database/sql/index.go:1298
↓ 2 callersFunctiongetProxyUser
(w http.ResponseWriter, r *http.Request, data *requestContext, fn handleFunc, proxyUser string)
backend/http/middleware.go:480
↓ 2 callersMethodgetQuickScanTimeUnlocked
getQuickScanTimeUnlocked calculates QuickScanTime without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:209
↓ 2 callersMethodgetScopedLocks
getScopedLocks pull lock from the map if found or create a new one
backend/adapters/fs/diskcache/file_cache.go:149
↓ 2 callersMethodgetStatusUnlocked
getStatusUnlocked calculates Status without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:309
↓ 2 callersMethodgetTopLevelDirs
getTopLevelDirs returns a list of top-level directory paths in the root
backend/indexing/indexingScanner.go:409
↓ 2 callersMethodhandleFile
handleFile processes a file and returns its size and whether it should be counted On Unix, always uses syscall to get size (allocated or logical based
backend/indexing/unix.go:61
↓ 2 callersFunctionhandleJPEGFallback
handleJPEGFallback attempts to use FFmpeg for problematic JPEG files This is preview-specific logic for user files, not used for icon generation
backend/preview/preview.go:385
↓ 2 callersFunctionidentifySecretFieldsByReflection
identifySecretFieldsByReflection identifies secret fields by known field names
backend/common/settings/generator.go:997
↓ 2 callersMethodincrementScannerDirs
incrementScannerDirs increments the directory counter for the active scanner
backend/indexing/indexingSchedule.go:145
↓ 2 callersMethodincrementScannerFiles
incrementScannerFiles increments the file counter for the active scanner
backend/indexing/indexingSchedule.go:176
↓ 2 callersFunctionisClientCancellation
isClientCancellation checks if an error is due to client cancellation (navigation away)
backend/http/preview.go:30
↓ 2 callersFunctionisSkippableStructType
isSkippableStructType checks if a struct type should be skipped during recursion
backend/common/settings/generator.go:335
↓ 2 callersMethodisUserInGroup
isUserInGroup checks if a username is in a group.
backend/database/access/access.go:440
↓ 2 callersFunctionitemMatchesSearchFilters
(item iteminfo.ItemInfo, isDir bool, searchOptions iteminfo.SearchOptions, largest, useWildcard bool, nameGlob
backend/indexing/search.go:130
↓ 2 callersMethodjpegQuality
jpegQuality returns JPEG quality (1-100) based on Quality setting
backend/preview/image.go:103
↓ 2 callersFunctionloadDefaultFavicon
loadDefaultFavicon loads the embedded default favicon PNG
backend/icons/generator.go:51
↓ 2 callersFunctionloadEnvConfig
()
backend/common/settings/config.go:921
↓ 2 callersMethodloadShareCache
loadShareCache fills shareByHash and shareByPath from the backend and removes expired links from the DB. Call once at startup so all reads can be serv
backend/database/share/storage.go:156
↓ 2 callersFunctionmigrateUserDefaults
migrateUserDefaults migrates deprecated UserDefaults fields to the new organized structure. This function maintains backwards compatibility by checkin
backend/common/settings/config.go:536
↓ 2 callersFunctionnameGlobPatternsForSearch
nameGlobPatternsForSearch builds non-empty parsed terms for SQLite name GLOB OR clauses.
backend/indexing/search.go:172
↓ 2 callersFunctionnewGrayPng
(t *testing.T, width, height int)
backend/preview/image_test.go:297
↓ 2 callersFunctionnewThrottledReadSeeker
newThrottledReadSeeker creates a new throttledReadSeeker.
backend/http/download.go:30
↓ 2 callersFunctionnormalizeDate
(date)
frontend/src/utils/moment.js:83
↓ 2 callersFunctionnormalizeFilename
normalizeFilename converts filename to lowercase and removes special characters to make fuzzy matching more effective
backend/http/duplicates.go:828
↓ 2 callersFunctionnormalizeStartupIntegrityMode
(m string)
backend/database/sql/index.go:117
↓ 2 callersFunctionnotifyToastUpdate
* Notify listeners that toasts have changed
frontend/src/notify/message.js:86
↓ 2 callersFunctionomitObjectProperty
(obj, key)
frontend/src/utils/object.js:33
↓ 2 callersFunctiononlyOfficeEffectivePort
(u *url.URL)
backend/http/onlyOffice.go:421
↓ 2 callersFunctionopenContextMenuHelper
(page: Page)
frontend/tests/playwright/test-setup.ts:8
↓ 2 callersFunctionparseLRC
Parses raw LRC text into a slice of Lyric. Lines with [hh:mm:ss.xx] (timestamps) will be parsed to ms for synced lyrics The ones without timestamp are
backend/adapters/fs/files/files.go:389
↓ 2 callersFunctionparseLdapServer
(server string)
backend/common/settings/auth.go:208
↓ 2 callersFunctionparseOptionalUnixQueryParam
(name, raw string)
backend/http/search.go:358
↓ 2 callersFunctionparsePublicKeyFromPEM
(pemData string)
backend/auth/jwt.go:156
↓ 2 callersFunctionparseSearchDateUTCStart
parseSearchDateUTCStart parses YYYY-MM-DD as midnight UTC; used for search date filters.
backend/indexing/iteminfo/searchQuery.go:138
↓ 2 callersMethodpause
(id)
frontend/src/utils/upload.js:485
↓ 2 callersFunctionpauseUploadCacheKey
(source, path string)
backend/http/resource.go:35
↓ 2 callersFunctionpickUserEntry
pickUserEntry returns the entry that represents a user when multiple entries match (e.g. Authentik user + virtual group). Prefers entries with objectC
backend/http/ldap.go:141
↓ 2 callersFunctionprepForFrontend
prepForFrontend strips secrets and maps source identifiers to display names for JSON (never expose paths).
backend/http/users.go:94
↓ 2 callersMethodprepareScanState
prepareScanState initializes per-scan maps. Quick scans previously skipped this and could panic with "assignment to entry in nil map" when writing sca
backend/indexing/indexingScanner.go:516
↓ 2 callersFunctionpreprocessPublicKeyOptions
(options)
frontend/src/api/auth.js:211
↓ 2 callersFunctionpreviewDecodeOpts
previewDecodeOpts returns decode options tuned for thumbnails: skip ICC/sRGB conversion (not needed for previews) and optionally apply EXIF orientatio
backend/preview/image.go:24
↓ 2 callersMethodprocessDirectoryItem
processDirectoryItem processes a directory item and returns the itemInfo, size, and whether it should be counted
backend/indexing/indexingFiles.go:766
↓ 2 callersMethodprocessFileItem
processFileItem processes a file item and returns the itemInfo, size, shouldCount, and whether it bubbles up hasPreview
backend/indexing/indexingFiles.go:817
↓ 2 callersMethodpruneGoneChildScanners
()
backend/indexing/indexingSchedulerLoop.go:167
↓ 2 callersFunctionpublicPauseUploadCacheKey
(shareHash, source, indexPath string)
backend/http/resource.go:39
↓ 2 callersFunctionrandomBytes
(n int)
backend/common/utils/crypto.go:12
↓ 2 callersFunctionrawFilesHandler
(w http.ResponseWriter, r *http.Request, d *requestContext, source string, fileList []string)
backend/http/download.go:154
↓ 2 callersFunctionreadCustomCSS
(path string)
backend/common/settings/styling.go:104
↓ 2 callersFunctionreadEmbeddedYaml
readEmbeddedYaml attempts to read the embedded config.generated.yaml file
backend/common/settings/generator.go:494
↓ 2 callersFunctionreadLastNLines
readLastNLines reads the last N lines from a file efficiently
backend/http/fileWatcher.go:35
↓ 2 callersMethodregisterScannerNextRun
registerScannerNextRun removes the scanner from any previous slot and adds it at the given UTC time.
backend/indexing/indexingSchedulerLoop.go:61
↓ 2 callersMethodreleaseImageSem
()
backend/preview/preview.go:139
↓ 2 callersFunctionremoveSpooledArchiveNow
removeSpooledArchiveNow drops token state and deletes the temp file (idle timeout or final chunk served).
backend/http/archive.go:69
↓ 2 callersFunctionrescheduleArchiveSpoolIdleCleanup
(token, tmpPath string)
backend/http/archive.go:77
↓ 2 callersMethodresetHardlinkTracking
()
backend/indexing/indexingScanner.go:526
↓ 2 callersFunctionresolveDownloadContentLength
@returns {Promise<{ size: number, token: string | null }>}
frontend/src/api/resources.js:251
↓ 2 callersFunctionreturnOnlyOfficeSuccess
returnOnlyOfficeSuccess returns a success response to OnlyOffice server
backend/http/onlyOffice.go:837
↓ 2 callersFunctionscanItem
(scanner interface{ Scan(...interface{}) error })
backend/database/sql/index.go:1308
↓ 2 callersFunctionscanScheduleDuration
(tier int)
backend/indexing/indexingSchedule.go:32
↓ 2 callersFunctionscheduleReconnect
()
frontend/src/notify/events.js:30
↓ 2 callersFunctionscheduleTierBoundsForComplexity
scheduleTierBoundsForComplexity limits how aggressive or idle a scanner may be scheduled. minTier: fastest allowed interval (low index); maxTier: slow
backend/indexing/indexingSchedule.go:39
↓ 2 callersMethodschedulerAdaptiveTick
()
backend/indexing/indexingSchedulerLoop.go:241
↓ 2 callersFunctionsearchForPictureInVorbisComment
searchForPictureInVorbisComment looks for METADATA_BLOCK_PICTURE field in Vorbis comments
backend/indexing/iteminfo/mediaMeta.go:249
↓ 2 callersFunctionsendFileWatchUpdate
sendFileWatchUpdate reads the file/directory and sends an update via the events system
backend/http/fileWatcher.go:434
↓ 2 callersFunctionserveArchiveWithServeContent
serveArchiveWithServeContent sends a built archive using ServeContent (Range-capable). For share links with MaxBandwidth > 0, outbound data is throttl
backend/http/archive.go:154
↓ 2 callersMethodsetCacheAfterMove
setCacheAfterMove updates both caches when a link's Source or Path changed. It acquires s.mu.
backend/database/share/storage.go:122
↓ 2 callersFunctionsetContentType
setContentType sets the appropriate Content-Type header based on file extension
backend/http/static.go:242
↓ 2 callersMethodsetError
(id, errorMessage)
frontend/src/utils/downloadManager.js:49
↓ 2 callersFunctionsetObjectProperty
(obj, key, value)
frontend/src/utils/object.js:22
↓ 2 callersFunctionsetSessionCookie
setSessionCookie - sets the authentication token as an HTTP cookie Get the correct domain for cookie - prefer X-Forwarded-Host from reverse proxy
backend/http/auth.go:440
↓ 2 callersFunctionsetupAuth
(generate bool)
backend/common/settings/config.go:445
↓ 2 callersFunctionsetupFrontend
(generate bool)
backend/common/settings/config.go:244
↓ 2 callersFunctionsetupFs
()
backend/common/settings/config.go:98
↓ 2 callersFunctionsetupLogging
()
backend/common/settings/config.go:497
↓ 2 callersFunctionsetupMedia
(generate bool)
backend/common/settings/config.go:302
↓ 2 callersFunctionsetupSources
(generate bool)
backend/common/settings/config.go:351
↓ 2 callersFunctionsetupTestEnv
(t *testing.T)
backend/http/middleware_test.go:21
↓ 2 callersFunctionsetupUrls
()
backend/common/settings/config.go:424
↓ 2 callersMethodshouldInclude
(baseName string)
backend/indexing/indexingFiles.go:1538
↓ 2 callersMethodstart
(id)
frontend/src/utils/upload.js:288
↓ 2 callersFunctionstopArchiveSpoolIdleTimer
(token string)
backend/http/archive.go:50
↓ 2 callersMethodtoImaging
()
backend/preview/image.go:50
↓ 2 callersFunctiontotalFromContentRange
Parse total size from Content-Range: bytes 0-0/12345
frontend/src/api/resources.js:236
↓ 2 callersMethodupdateComplexity
updateComplexity calculates the complexity level (1-10) for this scanner's directory 0: unknown
backend/indexing/indexingScanner.go:494
↓ 2 callersFunctionvalidateCustomImage
validateCustomImage validates a custom image file path and returns the absolute path or error
backend/common/settings/config.go:1108
↓ 2 callersFunctionvalidateLogin
(isPublicRoute = false)
frontend/src/utils/auth.js:5
↓ 2 callersFunctionvalidateMoveDestination
validateMoveDestination checks if a move/rename operation is valid It prevents moving a directory into itself or its subdirectories
backend/adapters/fs/files/files.go:678
↓ 2 callersFunctionwithAdminHelper
Middleware to ensure the user is an admin
backend/http/middleware.go:169
↓ 2 callersFunctionwithAuthRateLimitCredential
withAuthRateLimitCredential enforces the credential tier (and optional per-username limits). When trackFailures is true, 401 responses increment faile
backend/http/auth_ratelimit.go:221
↓ 2 callersFunctionwithOrWithoutUserHelper
withOrWithoutUserHelper is a middleware that tries to authenticate a user. If authentication is successful, the user is added to the request context.
backend/http/middleware.go:229
↓ 2 callersFunctionwithSelfOrAdmin
(fn handleFunc)
backend/http/middleware.go:634
↓ 2 callersFunctionwithTimeout
(timeout time.Duration, fn handleFunc)
backend/http/middleware.go:674
↓ 2 callersMethodwritePersistedIndexInfo
writePersistedIndexInfo writes scanners, stats, and disk totals to Bolt (no SSE broadcast).
backend/indexing/indexingFiles.go:1571
↓ 1 callersMethodAll
All wraps StorageBackend.All
backend/database/dbindex/storage.go:66
↓ 1 callersMethodAll
All returns all non-expired shares from the cache (populated at startup and by writes).
backend/database/share/storage.go:186
← previousnext →401–500 of 1,657, ranked by callers