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
↓ 2 callers
Function
generateShortUUID
()
backend/http/share.go:678
↓ 2 callers
Function
getFileSizeByMode
getFileSizeByMode returns file size based on config mode
backend/indexing/unix.go:20
↓ 2 callers
Method
getFileSizeForDisplay
getFileSizeForDisplay returns file size with appropriate calculation based on config
backend/indexing/indexingFiles.go:1162
↓ 2 callers
Method
getLastIndexedUnlocked
getLastIndexedUnlocked calculates LastIndexed without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:291
↓ 2 callers
Function
getParentPath
(path string)
backend/database/sql/index.go:1298
↓ 2 callers
Function
getProxyUser
(w http.ResponseWriter, r *http.Request, data *requestContext, fn handleFunc, proxyUser string)
backend/http/middleware.go:480
↓ 2 callers
Method
getQuickScanTimeUnlocked
getQuickScanTimeUnlocked calculates QuickScanTime without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:209
↓ 2 callers
Method
getScopedLocks
getScopedLocks pull lock from the map if found or create a new one
backend/adapters/fs/diskcache/file_cache.go:149
↓ 2 callers
Method
getStatusUnlocked
getStatusUnlocked calculates Status without acquiring lock (assumes lock is already held)
backend/indexing/indexingFiles.go:309
↓ 2 callers
Method
getTopLevelDirs
getTopLevelDirs returns a list of top-level directory paths in the root
backend/indexing/indexingScanner.go:409
↓ 2 callers
Method
handleFile
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 callers
Function
handleJPEGFallback
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 callers
Function
identifySecretFieldsByReflection
identifySecretFieldsByReflection identifies secret fields by known field names
backend/common/settings/generator.go:997
↓ 2 callers
Method
incrementScannerDirs
incrementScannerDirs increments the directory counter for the active scanner
backend/indexing/indexingSchedule.go:145
↓ 2 callers
Method
incrementScannerFiles
incrementScannerFiles increments the file counter for the active scanner
backend/indexing/indexingSchedule.go:176
↓ 2 callers
Function
isClientCancellation
isClientCancellation checks if an error is due to client cancellation (navigation away)
backend/http/preview.go:30
↓ 2 callers
Function
isSkippableStructType
isSkippableStructType checks if a struct type should be skipped during recursion
backend/common/settings/generator.go:335
↓ 2 callers
Method
isUserInGroup
isUserInGroup checks if a username is in a group.
backend/database/access/access.go:440
↓ 2 callers
Function
itemMatchesSearchFilters
(item iteminfo.ItemInfo, isDir bool, searchOptions iteminfo.SearchOptions, largest, useWildcard bool, nameGlob
backend/indexing/search.go:130
↓ 2 callers
Method
jpegQuality
jpegQuality returns JPEG quality (1-100) based on Quality setting
backend/preview/image.go:103
↓ 2 callers
Function
loadDefaultFavicon
loadDefaultFavicon loads the embedded default favicon PNG
backend/icons/generator.go:51
↓ 2 callers
Function
loadEnvConfig
()
backend/common/settings/config.go:921
↓ 2 callers
Method
loadShareCache
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 callers
Function
migrateUserDefaults
migrateUserDefaults migrates deprecated UserDefaults fields to the new organized structure. This function maintains backwards compatibility by checkin
backend/common/settings/config.go:536
↓ 2 callers
Function
nameGlobPatternsForSearch
nameGlobPatternsForSearch builds non-empty parsed terms for SQLite name GLOB OR clauses.
backend/indexing/search.go:172
↓ 2 callers
Function
newGrayPng
(t *testing.T, width, height int)
backend/preview/image_test.go:297
↓ 2 callers
Function
newThrottledReadSeeker
newThrottledReadSeeker creates a new throttledReadSeeker.
backend/http/download.go:30
↓ 2 callers
Function
normalizeDate
(date)
frontend/src/utils/moment.js:83
↓ 2 callers
Function
normalizeFilename
normalizeFilename converts filename to lowercase and removes special characters to make fuzzy matching more effective
backend/http/duplicates.go:828
↓ 2 callers
Function
normalizeStartupIntegrityMode
(m string)
backend/database/sql/index.go:117
↓ 2 callers
Function
notifyToastUpdate
* Notify listeners that toasts have changed
frontend/src/notify/message.js:86
↓ 2 callers
Function
omitObjectProperty
(obj, key)
frontend/src/utils/object.js:33
↓ 2 callers
Function
onlyOfficeEffectivePort
(u *url.URL)
backend/http/onlyOffice.go:421
↓ 2 callers
Function
openContextMenuHelper
(page: Page)
frontend/tests/playwright/test-setup.ts:8
↓ 2 callers
Function
parseLRC
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 callers
Function
parseLdapServer
(server string)
backend/common/settings/auth.go:208
↓ 2 callers
Function
parseOptionalUnixQueryParam
(name, raw string)
backend/http/search.go:358
↓ 2 callers
Function
parsePublicKeyFromPEM
(pemData string)
backend/auth/jwt.go:156
↓ 2 callers
Function
parseSearchDateUTCStart
parseSearchDateUTCStart parses YYYY-MM-DD as midnight UTC; used for search date filters.
backend/indexing/iteminfo/searchQuery.go:138
↓ 2 callers
Method
pause
(id)
frontend/src/utils/upload.js:485
↓ 2 callers
Function
pauseUploadCacheKey
(source, path string)
backend/http/resource.go:35
↓ 2 callers
Function
pickUserEntry
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 callers
Function
prepForFrontend
prepForFrontend strips secrets and maps source identifiers to display names for JSON (never expose paths).
backend/http/users.go:94
↓ 2 callers
Method
prepareScanState
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 callers
Function
preprocessPublicKeyOptions
(options)
frontend/src/api/auth.js:211
↓ 2 callers
Function
previewDecodeOpts
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 callers
Method
processDirectoryItem
processDirectoryItem processes a directory item and returns the itemInfo, size, and whether it should be counted
backend/indexing/indexingFiles.go:766
↓ 2 callers
Method
processFileItem
processFileItem processes a file item and returns the itemInfo, size, shouldCount, and whether it bubbles up hasPreview
backend/indexing/indexingFiles.go:817
↓ 2 callers
Method
pruneGoneChildScanners
()
backend/indexing/indexingSchedulerLoop.go:167
↓ 2 callers
Function
publicPauseUploadCacheKey
(shareHash, source, indexPath string)
backend/http/resource.go:39
↓ 2 callers
Function
randomBytes
(n int)
backend/common/utils/crypto.go:12
↓ 2 callers
Function
rawFilesHandler
(w http.ResponseWriter, r *http.Request, d *requestContext, source string, fileList []string)
backend/http/download.go:154
↓ 2 callers
Function
readCustomCSS
(path string)
backend/common/settings/styling.go:104
↓ 2 callers
Function
readEmbeddedYaml
readEmbeddedYaml attempts to read the embedded config.generated.yaml file
backend/common/settings/generator.go:494
↓ 2 callers
Function
readLastNLines
readLastNLines reads the last N lines from a file efficiently
backend/http/fileWatcher.go:35
↓ 2 callers
Method
registerScannerNextRun
registerScannerNextRun removes the scanner from any previous slot and adds it at the given UTC time.
backend/indexing/indexingSchedulerLoop.go:61
↓ 2 callers
Method
releaseImageSem
()
backend/preview/preview.go:139
↓ 2 callers
Function
removeSpooledArchiveNow
removeSpooledArchiveNow drops token state and deletes the temp file (idle timeout or final chunk served).
backend/http/archive.go:69
↓ 2 callers
Function
rescheduleArchiveSpoolIdleCleanup
(token, tmpPath string)
backend/http/archive.go:77
↓ 2 callers
Method
resetHardlinkTracking
()
backend/indexing/indexingScanner.go:526
↓ 2 callers
Function
resolveDownloadContentLength
@returns {Promise<{ size: number, token: string | null }>}
frontend/src/api/resources.js:251
↓ 2 callers
Function
returnOnlyOfficeSuccess
returnOnlyOfficeSuccess returns a success response to OnlyOffice server
backend/http/onlyOffice.go:837
↓ 2 callers
Function
scanItem
(scanner interface{ Scan(...interface{}) error })
backend/database/sql/index.go:1308
↓ 2 callers
Function
scanScheduleDuration
(tier int)
backend/indexing/indexingSchedule.go:32
↓ 2 callers
Function
scheduleReconnect
()
frontend/src/notify/events.js:30
↓ 2 callers
Function
scheduleTierBoundsForComplexity
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 callers
Method
schedulerAdaptiveTick
()
backend/indexing/indexingSchedulerLoop.go:241
↓ 2 callers
Function
searchForPictureInVorbisComment
searchForPictureInVorbisComment looks for METADATA_BLOCK_PICTURE field in Vorbis comments
backend/indexing/iteminfo/mediaMeta.go:249
↓ 2 callers
Function
sendFileWatchUpdate
sendFileWatchUpdate reads the file/directory and sends an update via the events system
backend/http/fileWatcher.go:434
↓ 2 callers
Function
serveArchiveWithServeContent
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 callers
Method
setCacheAfterMove
setCacheAfterMove updates both caches when a link's Source or Path changed. It acquires s.mu.
backend/database/share/storage.go:122
↓ 2 callers
Function
setContentType
setContentType sets the appropriate Content-Type header based on file extension
backend/http/static.go:242
↓ 2 callers
Method
setError
(id, errorMessage)
frontend/src/utils/downloadManager.js:49
↓ 2 callers
Function
setObjectProperty
(obj, key, value)
frontend/src/utils/object.js:22
↓ 2 callers
Function
setSessionCookie
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 callers
Function
setupAuth
(generate bool)
backend/common/settings/config.go:445
↓ 2 callers
Function
setupFrontend
(generate bool)
backend/common/settings/config.go:244
↓ 2 callers
Function
setupFs
()
backend/common/settings/config.go:98
↓ 2 callers
Function
setupLogging
()
backend/common/settings/config.go:497
↓ 2 callers
Function
setupMedia
(generate bool)
backend/common/settings/config.go:302
↓ 2 callers
Function
setupSources
(generate bool)
backend/common/settings/config.go:351
↓ 2 callers
Function
setupTestEnv
(t *testing.T)
backend/http/middleware_test.go:21
↓ 2 callers
Function
setupUrls
()
backend/common/settings/config.go:424
↓ 2 callers
Method
shouldInclude
(baseName string)
backend/indexing/indexingFiles.go:1538
↓ 2 callers
Method
start
(id)
frontend/src/utils/upload.js:288
↓ 2 callers
Function
stopArchiveSpoolIdleTimer
(token string)
backend/http/archive.go:50
↓ 2 callers
Method
toImaging
()
backend/preview/image.go:50
↓ 2 callers
Function
totalFromContentRange
Parse total size from Content-Range: bytes 0-0/12345
frontend/src/api/resources.js:236
↓ 2 callers
Method
updateComplexity
updateComplexity calculates the complexity level (1-10) for this scanner's directory 0: unknown
backend/indexing/indexingScanner.go:494
↓ 2 callers
Function
validateCustomImage
validateCustomImage validates a custom image file path and returns the absolute path or error
backend/common/settings/config.go:1108
↓ 2 callers
Function
validateLogin
(isPublicRoute = false)
frontend/src/utils/auth.js:5
↓ 2 callers
Function
validateMoveDestination
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 callers
Function
withAdminHelper
Middleware to ensure the user is an admin
backend/http/middleware.go:169
↓ 2 callers
Function
withAuthRateLimitCredential
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 callers
Function
withOrWithoutUserHelper
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 callers
Function
withSelfOrAdmin
(fn handleFunc)
backend/http/middleware.go:634
↓ 2 callers
Function
withTimeout
(timeout time.Duration, fn handleFunc)
backend/http/middleware.go:674
↓ 2 callers
Method
writePersistedIndexInfo
writePersistedIndexInfo writes scanners, stats, and disk totals to Bolt (no SSE broadcast).
backend/indexing/indexingFiles.go:1571
↓ 1 callers
Method
All
All wraps StorageBackend.All
backend/database/dbindex/storage.go:66
↓ 1 callers
Method
All
All returns all non-expired shares from the cache (populated at startup and by writes).
backend/database/share/storage.go:186
← previous
next →
401–500 of 1,657, ranked by callers