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
↓ 1 callers
Function
AuthenticateLDAPUser
AuthenticateLDAPUser attempts LDAP authentication and returns the filebrowser user if successful.
backend/http/ldap.go:17
↓ 1 callers
Method
BeginMFALogin
(username, password string, rpID string, userStore *users.Storage)
backend/auth/webauthn.go:87
↓ 1 callers
Method
BeginRegistration
(user *users.User, rpID string)
backend/auth/webauthn.go:163
↓ 1 callers
Method
BeginTransaction
BeginTransaction starts a transaction for bulk operations. The caller must call Commit() or Rollback() on the returned transaction. IMPORTANT: The mut
backend/database/sql/sqlite.go:384
↓ 1 callers
Function
BuildAndStreamArchive
BuildAndStreamArchive builds a zip or tar.gz for multi-file/directory download. Plain GET without Range streams the archive straight to the response (
backend/http/archive.go:715
↓ 1 callers
Function
CapitalizeFirst
CapitalizeFirst returns the input string with the first letter capitalized.
backend/common/utils/main.go:24
↓ 1 callers
Function
CheckForUpdates
()
backend/common/utils/checkForUpdates.go:29
↓ 1 callers
Function
CheckValidFFmpeg
CheckValidFFmpeg checks for a valid ffmpeg executable. If a path is provided, it looks there. Otherwise, it searches the system's PATH.
backend/ffmpeg/service.go:53
↓ 1 callers
Function
CheckValidFFprobe
CheckValidFFprobe checks for a valid ffprobe executable. If a path is provided, it looks there. Otherwise, it searches the system's PATH.
backend/ffmpeg/service.go:59
↓ 1 callers
Function
CheckWindowsHidden
(realpath string)
backend/indexing/unix.go:14
↓ 1 callers
Function
CollectCommentsFromEmbeddedYaml
CollectCommentsFromEmbeddedYaml parses comments from embedded YAML content and returns CommentsMap, SecretFieldsMap, and DeprecatedFieldsMap
backend/common/settings/generator.go:348
↓ 1 callers
Function
CommonPrefix
CommonPrefix returns the common directory path of provided files.
backend/adapters/fs/fileutils/file.go:184
↓ 1 callers
Method
ConvertHEICToJPEG
ConvertHEICToJPEG converts a HEIC file to JPEG with specified dimensions and quality using proper tile extraction
backend/ffmpeg/image.go:203
↓ 1 callers
Method
ConvertHEICToJPEGDirect
ConvertHEICToJPEGDirect converts a HEIC file to JPEG using direct FFmpeg conversion (fast method)
backend/ffmpeg/image.go:135
↓ 1 callers
Method
ConvertImageToJPEG
ConvertImageToJPEG converts any image format (including problematic JPEGs) to standard JPEG using FFmpeg This handles extended JPEG formats that Go's
backend/ffmpeg/image.go:389
↓ 1 callers
Function
CopyDir
CopyDir copies a directory from source to dest and all of its sub-directories. It doesn't stop if it finds an error during the copy. Returns an error
backend/adapters/fs/fileutils/dir.go:12
↓ 1 callers
Function
CouldHaveAlbumArt
(extension string)
backend/indexing/iteminfo/mediaMeta.go:13
↓ 1 callers
Method
CreateIndexTable
()
backend/database/sql/index.go:239
↓ 1 callers
Method
Delete
(hash string)
backend/database/storage/bolt/share.go:105
↓ 1 callers
Method
Delete
(ctx context.Context, key string)
backend/adapters/fs/diskcache/file_cache.go:123
↓ 1 callers
Method
DeleteApiToken
(userID uint, name string)
backend/database/users/storage.go:30
↓ 1 callers
Method
DeleteByID
(id any)
backend/database/crud/crud.go:8
↓ 1 callers
Method
DeleteCredential
(user *users.User, credentialID string)
backend/auth/webauthn.go:219
↓ 1 callers
Method
DeleteItem
DeleteItem removes an item and optionally its children (recursive) for a specific source.
backend/database/sql/index.go:544
↓ 1 callers
Method
DeleteStaleEntries
(source string, pathPrefix string, scanStartTime int64, root bool)
backend/database/sql/index.go:760
↓ 1 callers
Method
DeleteStaleFilesInDirs
DeleteStaleFilesInDirs deletes files that weren't updated in specific directories Uses batched IN clauses for efficiency with potentially large direct
backend/database/sql/index.go:694
↓ 1 callers
Method
DeleteStaleFolders
DeleteStaleEntriesQuick handles cleanup for quick scans (two-phase approach) Phase 1: Delete folders that weren't updated (they were deleted from file
backend/database/sql/index.go:628
↓ 1 callers
Method
DeleteStaleItemsOlderThan
DeleteStaleItemsOlderThan deletes all items across all sources where last_updated is older than the specified duration. This is used for periodic clea
backend/database/sql/index.go:826
↓ 1 callers
Method
EnsurePinnedItems
EnsurePinnedItems returns a non-nil map for mutation.
backend/database/users/pinned_items.go:64
↓ 1 callers
Function
ExtendedMimeTypeCheck
(extension string)
backend/indexing/iteminfo/conditions.go:317
↓ 1 callers
Function
ExtractEmbeddedPreview
ExtractEmbeddedPreview runs exiftool on the given file to extract an embedded preview image (e.g. JpgFromRaw, PreviewImage, ThumbnailImage). Returns t
backend/preview/exiftool.go:33
↓ 1 callers
Function
ExtractLyrics
Returns lyrics from an audio file (from embedded tags or from a .lrc file with the same name).
backend/adapters/fs/files/files.go:529
↓ 1 callers
Method
FindByUserID
(id uint)
backend/database/share/storage.go:18
↓ 1 callers
Method
FinishMFALogin
(sessionID string, r *http.Request, userStore *users.Storage)
backend/auth/webauthn.go:124
↓ 1 callers
Method
FinishRegistration
(user *users.User, sessionID string, credentialName string, r *http.Request)
backend/auth/webauthn.go:183
↓ 1 callers
Method
FormatFromExtension
(ext string)
backend/preview/image.go:124
↓ 1 callers
Function
GenerateConfigYamlWithEmptyMaps
GenerateConfigYamlWithEmptyMaps generates YAML without comment parsing when source files are unavailable
backend/common/settings/generator.go:1086
↓ 1 callers
Method
GenerateImageFromDoc
(ctx context.Context, file iteminfo.ExtendedFileInfo, tempFilePath string, pageNumber int)
backend/preview/doc.go:26
↓ 1 callers
Method
GenerateOfficePreview
GenerateOfficePreview generates a preview for an office document using OnlyOffice. Note: Global image processor semaphore is acquired at GeneratePrevi
backend/preview/office.go:25
↓ 1 callers
Method
GenerateVideoPreview
GenerateVideoPreview generates a single preview image from a video using ffmpeg. videoPath: path to the input video file. percentageSeek: percentage o
backend/preview/video.go:16
↓ 1 callers
Method
GenerateVideoPreviewStreaming
GenerateVideoPreviewStreaming generates a video preview and streams it directly to a writer This is more memory efficient for large previews as it doe
backend/ffmpeg/video.go:18
↓ 1 callers
Method
GetAll
()
backend/database/crud/crud.go:6
↓ 1 callers
Method
GetAllGroups
GetAllGroups returns all group names.
backend/database/access/access.go:566
↓ 1 callers
Method
GetBackendSidebarLinks
GetBackendSidebarLinks normalizes source links for Bolt: SourceName is the filesystem path.
backend/database/users/conversions.go:94
↓ 1 callers
Method
GetByHash
GetByHash wraps StorageBackend.GetByHash and handles expiry.
backend/database/share/storage.go:224
↓ 1 callers
Method
GetByID
(id any)
backend/database/crud/crud.go:5
↓ 1 callers
Method
GetBySource
(source string)
backend/database/dbindex/storage.go:14
↓ 1 callers
Method
GetBySourcePath
GetBySourcePath returns shares for the given path and source from the cache.
backend/database/share/storage.go:288
↓ 1 callers
Method
GetCommonShareByHash
(hash string)
backend/database/share/storage.go:20
↓ 1 callers
Method
GetDirectFileCount
GetDirectFileCount counts only files directly under the given path (non-recursive) For root scanner ("/"), this counts files like "/filename" but excl
backend/database/sql/index.go:873
↓ 1 callers
Method
GetFilesForMultipleSizes
GetFilesForMultipleSizes retrieves ALL files for a batch of sizes in a single query.
backend/database/sql/index.go:945
↓ 1 callers
Method
GetFolderSizeForDisplay
GetFolderSizeForDisplay retrieves folder size with appropriate formatting based on config
backend/indexing/indexingFiles.go:1143
↓ 1 callers
Method
GetFrontendScopes
GetFrontendScopes converts scopes for JSON clients: SourceScope.Name is always the source display name. Assumes Bolt stores paths (GetBackendScopes);
backend/database/users/conversions.go:74
↓ 1 callers
Function
GetFrontendSidebarLinks
GetFrontendSidebarLinks converts the user's sidebar links from backend-style to frontend-style:
backend/http/users.go:120
↓ 1 callers
Method
GetFsInfo
GetFsInfo returns filesystem information with index checks and extended attributes
backend/indexing/indexingFiles.go:720
↓ 1 callers
Function
GetIndexDB
GetIndexDB returns the shared index database.
backend/indexing/indexingFiles.go:357
↓ 1 callers
Function
GetIndexInfo
(sourceName string, forceCacheRefresh bool)
backend/indexing/mutate.go:272
↓ 1 callers
Method
GetLastIndexed
GetLastIndexed returns the most recent scan time from all scanners
backend/indexing/indexingFiles.go:284
↓ 1 callers
Function
GetOrientation
GetOrientation returns the EXIF orientation string for the file (e.g. "Rotate 90 CW", "Horizontal (normal)"). Uses exiftool -Orientation -s3. Returns
backend/preview/exiftool.go:64
↓ 1 callers
Function
GetParentDirectoryPath
(path string)
backend/common/utils/main.go:68
↓ 1 callers
Method
GetPermanent
(path, source string, id uint)
backend/database/share/storage.go:21
↓ 1 callers
Method
GetRecursiveCount
GetRecursiveCount counts directories and files recursively for a child scanner
backend/database/sql/index.go:847
↓ 1 callers
Method
GetRulesForGroup
GetRulesForGroup returns all rules for a specific group for a given sourcePath.
backend/database/access/access.go:901
↓ 1 callers
Method
GetRulesForUser
GetRulesForUser returns all rules for a specific user for a given sourcePath.
backend/database/access/access.go:856
↓ 1 callers
Method
GetServer
()
backend/common/settings/storage.go:11
↓ 1 callers
Method
GetSizeGroupsForDuplicates
GetSizeGroupsForDuplicates queries for all size groups that have 2+ files for a specific source.
backend/database/sql/index.go:1218
↓ 1 callers
Method
GetSubtitles
GetSubtitles detects external subtitle files for video files. Embedded subtitles should be detected by ffmpeg and passed as embeddedSubs parameter.
backend/indexing/iteminfo/utils.go:26
↓ 1 callers
Method
GetUserDownloadCount
GetUserDownloadCount returns the download count for a specific user
backend/database/share/extended.go:124
↓ 1 callers
Method
GetUserGroups
GetUserGroups returns all groups for a specific user.
backend/database/access/access.go:578
↓ 1 callers
Method
GetUserIDFromToken
GetUserIDFromToken retrieves the user ID for a given token string (memory-only read).
backend/database/access/access.go:1294
↓ 1 callers
Method
HasSourceByPath
HasSourceByPath checks if the user has access to a given source path
backend/database/users/users.go:263
↓ 1 callers
Function
HashPwd
HashPwd hashes a password.
backend/common/utils/crypto.go:33
↓ 1 callers
Function
InitializeUserResolvers
InitializeUserResolvers sets up the global resolvers and config providers in the users package This should be called once during application initializ
backend/common/settings/functions.go:10
↓ 1 callers
Function
InsecureRandomIdentifier
(length int)
backend/common/utils/main.go:31
↓ 1 callers
Function
IsDirectory
IsDirectory determines if a path should be treated as a directory. It treats known bundle-style directories as files instead.
backend/indexing/iteminfo/mediaMeta.go:393
↓ 1 callers
Function
IsMatchingDetectedType
IsMatchingDetectedType checks if the detected MIME type matches the search type. This uses the actual detected type rather than just the extension, wh
backend/indexing/iteminfo/conditions.go:402
↓ 1 callers
Function
IsTextFile
IsTextFile checks if a file is viewable/editable as text (like with cat or a text editor). It returns true if the file appears to be text, false if it
backend/common/utils/textfile.go:13
↓ 1 callers
Method
IsTokenRevoked
IsTokenRevoked checks if a token hash is in the revoked list (memory-only read).
backend/database/access/access.go:1276
↓ 1 callers
Method
Load
Load restores index and scanner information from the database
backend/indexing/indexingFiles.go:1615
↓ 1 callers
Method
LoadShareCacheFromDB
LoadShareCacheFromDB repopulates the in-memory cache from the database. Call at startup (e.g. from InitializeDb) to ensure shares are loaded after the
backend/database/share/storage.go:181
↓ 1 callers
Function
LoggingMiddleware
LoggingMiddleware logs each request and its status code.
backend/http/middleware.go:744
↓ 1 callers
Function
LoginHelper
allow user without OTP to pass
backend/http/middleware.go:285
↓ 1 callers
Method
MakeIndexPathPlatform
platform specific rules
backend/indexing/unix.go:96
↓ 1 callers
Function
Model3DMimeType
Model3DMimeType returns the MIME type for a 3D model extension, or "" if not a 3D model.
backend/indexing/iteminfo/conditions.go:374
↓ 1 callers
Function
NewFFmpegService
NewVideoService creates a new video service instance
backend/ffmpeg/service.go:24
↓ 1 callers
Function
NewFileCache
(dir string)
backend/adapters/fs/diskcache/file_cache.go:35
↓ 1 callers
Function
NewTempDB
NewTempDB creates a new temporary SQLite database. The database is created in the cache directory's sql/ subdirectory. The database will be cleaned up
backend/database/sql/sqlite.go:196
↓ 1 callers
Function
NewUsersBackend
NewUsersBackend returns a users.StorageBackend backed by storm DB.
backend/database/storage/bolt/users.go:24
↓ 1 callers
Method
Ok
Ok checks if a reCaptcha responde is correct.
backend/auth/json.go:90
↓ 1 callers
Method
Path
Path returns the path to the temporary database file. This is useful for debugging or if you need to inspect the database.
backend/database/sql/sqlite.go:563
↓ 1 callers
Function
PrepareDownloadSpoolDir
PrepareDownloadSpoolDir creates the download spool directory and removes any leftover dl-archive-*
backend/common/settings/config.go:1181
↓ 1 callers
Function
RawImageMimeType
RawImageMimeType returns the MIME type for a raw image extension, or "" if not raw.
backend/indexing/iteminfo/conditions.go:363
↓ 1 callers
Method
RemoveAllRulesForUser
RemoveAllRulesForUser removes a user from all allow and deny lists.
backend/database/access/access.go:790
↓ 1 callers
Method
RemoveAllowGroup
RemoveAllowGroup removes a group from the allow list for a given source and index path.
backend/database/access/access.go:678
↓ 1 callers
Method
RemoveDenyGroup
RemoveDenyGroup removes a group from the deny list for a given source and index path.
backend/database/access/access.go:734
↓ 1 callers
Method
RemoveRuleByPath
RemoveRuleByPath removes a rule by its exact path from the internal storage
backend/database/access/access.go:188
↓ 1 callers
Method
RemoveUserFromGroup
RemoveUserFromGroup removes a username from a group.
backend/database/access/access.go:632
↓ 1 callers
Method
Render
Render renders a template document with headers and data
backend/http/static.go:27
↓ 1 callers
Method
ResetAllComplexities
ResetAllComplexities sets the complexity to 0 for all indexes and their scanners. This should be called when the index database is recreated (either f
backend/database/dbindex/storage.go:173
↓ 1 callers
Method
ResetDownloadCounts
ResetDownloadCounts resets both global and per-user download counts
backend/database/share/extended.go:134
← previous
next →
501–600 of 1,657, ranked by callers