MCPcopy Create free account

hub / github.com/gtsteffaniak/filebrowser / functions

Functions1,657 in github.com/gtsteffaniak/filebrowser

↓ 1 callersFunctionformatCredentialResponse
(cred)
frontend/src/api/auth.js:234
↓ 1 callersFunctionformatLine
formatLine applies padding to a single line so its comment starts at a target column.
backend/common/settings/generator.go:1238
↓ 1 callersFunctionfromNow
(date, locale)
frontend/src/utils/moment.js:3
↓ 1 callersFunctiongeneralUsage
()
backend/cmd/root.go:44
↓ 1 callersMethodgenerateDocumentPreview
generateDocumentPreview generates preview for PDF and document files
backend/preview/preview.go:294
↓ 1 callersMethodgenerateHEICPreview
generateHEICPreview generates preview for HEIC files using FFmpeg
backend/preview/preview.go:313
↓ 1 callersFunctiongenerateIconSizes
generateIconSizes generates all required icon sizes from source PNG data
backend/icons/generator.go:167
↓ 1 callersMethodgenerateImagePreview
generateImagePreview generates preview for regular image files
backend/preview/preview.go:347
↓ 1 callersMethodgenerateOfficeFilePreview
generateOfficeFilePreview generates preview for Office files via OnlyOffice
backend/preview/preview.go:304
↓ 1 callersFunctiongenerateOfficeId
(realPath string)
backend/adapters/fs/files/files.go:375
↓ 1 callersFunctiongeneratePWAManifest
generatePWAManifest creates the PWA manifest structure
backend/icons/manifest.go:31
↓ 1 callersFunctiongenerateRandomCode
(length)
frontend/src/utils/auth.js:53
↓ 1 callersMethodgenerateRawPreview
generateRawPreview generates the initial preview image bytes based on file type
backend/preview/preview.go:260
↓ 1 callersFunctiongenerateSingleIcon
generateSingleIcon generates a single icon file at the specified size
backend/icons/generator.go:197
↓ 1 callersMethodgenerateVideoPreviewBytes
generateVideoPreviewBytes generates preview frame from video file
backend/preview/preview.go:322
↓ 1 callersFunctiongenerateYaml
()
backend/cmd/cli.go:407
↓ 1 callersMethodgetActiveScannerPath
getActiveScannerPath returns the path of the currently active scanner, or empty string if none Assumes mutex is NOT held - will acquire its own lock
backend/indexing/indexingFiles.go:1506
↓ 1 callersMethodgetBasicDirInfo
getBasicDirInfo returns just directory metadata without children
backend/indexing/indexingFiles.go:583
↓ 1 callersFunctiongetCookie
(name)
frontend/src/utils/cookie.js:5
↓ 1 callersFunctiongetDefaultToastIcon
* Get default icon for toast type * @param {'success' | 'error' | 'info' | 'warning'} type * @returns {string}
frontend/src/notify/message.js:539
↓ 1 callersMethodgetDirInfoFromContext
getDirInfoFromContext gets full directory info using PathContext
backend/indexing/indexingFiles.go:562
↓ 1 callersFunctiongetDirectoryPreview
getDirectoryPreview returns the previewable file at the given frame index (0–3) for motion preview. atPercentage maps to frame: 0→0, 1–25→1, 26–50→2,
backend/http/preview.go:119
↓ 1 callersFunctiongetDiskUsage
getDiskUsage returns the actual disk space used by a file in bytes This is a simplified helper for shallow calculations and API calls For scanning wit
backend/indexing/indexingFiles.go:32
↓ 1 callersFunctiongetEmbeddedThumbnail
(in io.Reader)
backend/preview/image.go:317
↓ 1 callersFunctiongetFileDetails
(sys any, filePath string, useLogicalSize bool)
backend/indexing/unix.go:27
↓ 1 callersMethodgetFileInfoFromContext
getFileInfoFromContext returns info for a single file
backend/indexing/indexingFiles.go:542
↓ 1 callersFunctiongetFileSizeByMode
getFileSizeByMode returns file size based on config mode Centralizes the logic for choosing between disk usage and logical size
backend/indexing/windows.go:39
↓ 1 callersFunctiongetHumanReadableFilesize
(fileSizeBytes)
frontend/src/utils/filesizes.js:1
↓ 1 callersFunctiongetIconSizesToGenerate
getIconSizesToGenerate returns all icon sizes that need to be generated
backend/icons/generator.go:153
↓ 1 callersFunctiongetJwtUser
(w http.ResponseWriter, r *http.Request, data *requestContext, fn handleFunc, jwtToken string)
backend/http/middleware.go:438
↓ 1 callersFunctiongetNestedProperty
(obj, outerKey, innerKey)
frontend/src/utils/object.js:44
↓ 1 callersFunctiongetNonAdminEditableFieldNames
Helper function to get field names (copied from bolt/users.go for testing)
backend/database/users/nonadmin_test.go:65
↓ 1 callersFunctiongetNonAdminEditableFieldNames
Helper to return list of field names from NonAdminEditable struct
backend/database/storage/bolt/users.go:240
↓ 1 callersFunctiongetOrCreateLdapUser
getOrCreateLdapUser returns the filebrowser user for an LDAP-authenticated username, creating one if configured.
backend/http/ldap.go:187
↓ 1 callersFunctiongetParentDir
(path)
frontend/src/utils/url.js:35
↓ 1 callersMethodgetRuleAtExactPath
getRuleAtExactPath is a helper to get a rule without the recursive logic.
backend/database/access/access.go:396
↓ 1 callersFunctiongetSharePasswordHash
(body share.CreateBody)
backend/http/share.go:665
↓ 1 callersFunctiongetSidebarMode
()
frontend/src/store/state.js:212
↓ 1 callersFunctiongetSidebarWidth
* Load sidebar width from localStorage or use default size * @returns {number}
frontend/src/store/state.js:207
↓ 1 callersFunctiongetStringStyle
getStringStyle determines whether a string should be quoted in YAML
backend/common/settings/generator.go:31
↓ 1 callersFunctiongetTools
()
frontend/src/utils/constants.js:44
↓ 1 callersFunctiongetYamlFieldName
getYamlFieldName determines the YAML field name from struct tags
backend/common/settings/generator.go:319
↓ 1 callersFunctiongroupFilesByChecksum
groupFilesByChecksum groups files by partial checksum and returns groups with their checksums
backend/http/duplicates.go:602
↓ 1 callersFunctiongroupFilesByFilename
groupFilesByFilename groups files by fuzzy filename matching Works with iteminfo.FileInfo from the main IndexDB Normalizes filenames on-the-fly for co
backend/http/duplicates.go:780
↓ 1 callersFunctiongroupFilesByType
groupFilesByType groups files by MIME type Assumes files are already sorted by type (from SQL ORDER BY)
backend/http/duplicates.go:936
↓ 1 callersFunctionhandleRasterFavicon
handleRasterFavicon processes a raster favicon (PNG, JPEG, GIF, WebP, etc.)
backend/icons/generator.go:143
↓ 1 callersFunctionhandleSVGFavicon
handleSVGFavicon processes an SVG favicon by finding its raster companion
backend/icons/generator.go:127
↓ 1 callersFunctionhandleSourceUpdates
()
backend/events/eventRouter.go:135
↓ 1 callersFunctionhandleUserEvents
()
backend/events/eventRouter.go:40
↓ 1 callersFunctionhandleWithStaticData
(w http.ResponseWriter, r *http.Request, d *requestContext, file, contentType string)
backend/http/static.go:53
↓ 1 callersFunctionhasAlbumArtFLACOptimized
hasAlbumArtFLACOptimized checks for PICTURE metadata block (type 6) in FLAC files
backend/indexing/iteminfo/mediaMeta.go:175
↓ 1 callersFunctionhasAlbumArtLowLevel
hasAlbumArtLowLevel efficiently checks for album art in audio files. It handles ID3v2 tags (MP3) and Vorbis comments (FLAC, OGG) with low-level parsin
backend/indexing/iteminfo/mediaMeta.go:20
↓ 1 callersFunctionhasAlbumArtM4A
hasAlbumArtM4A checks for embedded artwork in M4A/MP4 files
backend/indexing/iteminfo/mediaMeta.go:267
↓ 1 callersFunctionhasAlbumArtMP3Optimized
hasAlbumArtMP3Optimized checks for APIC/PIC frames with minimal I/O Takes the 10-byte header already read and reads only the necessary tag data
backend/indexing/iteminfo/mediaMeta.go:85
↓ 1 callersFunctionhasAlbumArtOGGOptimized
hasAlbumArtOGGOptimized checks for METADATA_BLOCK_PICTURE in OGG Vorbis comments
backend/indexing/iteminfo/mediaMeta.go:218
↓ 1 callersFunctionhasBundleExtension
hasBundleExtension checks if a file has a known bundle-style extension.
backend/indexing/iteminfo/conditions.go:477
↓ 1 callersFunctionhasEmbeddedPreview
hasEmbeddedPreview reports whether we should try exiftool for an embedded preview. Only true for types that often have one and lack a cheap native dec
backend/preview/exiftool.go:16
↓ 1 callersFunctionidentifyDeprecatedFieldsByReflection
identifyDeprecatedFieldsByReflection identifies deprecated fields by known field names
backend/common/settings/generator.go:1044
↓ 1 callersMethodincrementScannerDirsUnlocked
incrementScannerDirsUnlocked increments the directory counter for the active scanner
backend/indexing/indexingSchedule.go:162
↓ 1 callersFunctionisAuthLockout
(ip, username string)
backend/http/auth_ratelimit.go:178
↓ 1 callersMethodisDirectoryOnFilesystem
isDirectoryOnFilesystem checks if the path exists and is a directory on the filesystem
backend/database/share/extended.go:51
↓ 1 callersMethodisFileOnFilesystem
isFileOnFilesystem checks if the path exists and is a file on the filesystem
backend/database/share/extended.go:33
↓ 1 callersFunctionisOnlyOfficeCompatibleFile
isOnlyOfficeCompatibleFile checks if a file extension is supported by OnlyOffice
backend/http/download.go:301
↓ 1 callersFunctionisSameRoute
(to: RouteLocation, from: RouteLocation)
frontend/src/router/index.ts:161
↓ 1 callersFunctionjoinPath
(basePath, ...segments)
frontend/src/utils/url.js:165
↓ 1 callersFunctionjwtVerificationKey
(secret string, method jwt.SigningMethod, algorithm string)
backend/auth/jwt.go:106
↓ 1 callersFunctionlevenshteinDistance
levenshteinDistance calculates the edit distance between two strings
backend/http/duplicates.go:871
↓ 1 callersFunctionloadCustomFavicon
()
backend/common/settings/config.go:1137
↓ 1 callersFunctionloadFaviconSource
loadFaviconSource loads and prepares the favicon source data as PNG Returns PNG data ready for resizing into icon sizes
backend/icons/generator.go:105
↓ 1 callersFunctionloadLoginIcon
()
backend/common/settings/config.go:1188
↓ 1 callersFunctionloadNotificationHistory
* Load notification history from sessionStorage * @returns {Array}
frontend/src/store/state.js:193
↓ 1 callersFunctionloginHelper
(fn handleFunc)
backend/http/middleware.go:630
↓ 1 callersFunctionloginWithOidcUser
loginWithOidcUser extracts the username from the user claims (userInfo) based on the configured UserIdentifier and logs the user into the application.
backend/http/oidc.go:324
↓ 1 callersFunctionmanifestHandler
manifestHandler serves the cached PWA manifest
backend/http/static.go:271
↓ 1 callersMethodmarkFilesChanged
markFilesChanged marks that files have changed in the currently active scanner
backend/indexing/indexingSchedule.go:128
↓ 1 callersFunctionmax
max returns the maximum of two integers
backend/http/duplicates.go:927
↓ 1 callersFunctionmeasureAuthTime
measureAuthTime measures the time taken to authenticate with given credentials
backend/auth/json_timing_test.go:170
↓ 1 callersFunctionmergeConfig
mergeConfig merges the provided config with defaults, returning a new config. If provided config is nil or empty, returns default config.
backend/database/sql/sqlite.go:122
↓ 1 callersFunctionmergeGroupsByChecksum
mergeGroupsByChecksum merges groups that share any checksum values This catches cases where files have identical content but were grouped separately
backend/http/duplicates.go:466
↓ 1 callersFunctionmigrateAccessRule
migrateAccessRule creates a new access rule with the new path format
backend/cmd/access.go:71
↓ 1 callersFunctionmigrateOldCacheStructure
migrateOldCacheStructure moves cache files from old structure (dir/a/...) to new structure (dir/diskcache/a/...)
backend/adapters/fs/diskcache/file_cache.go:51
↓ 1 callersFunctionmin
min returns the minimum of three integers
backend/http/duplicates.go:913
↓ 1 callersFunctionmockCheckPermissions
mockCheckPermissions mocks the CheckPermissions function to bypass index lookups
backend/http/webdav_test.go:137
↓ 1 callersFunctionmockFileInfoFaster
(t *testing.T)
backend/http/middleware_test.go:49
↓ 1 callersFunctionmockWebDAVIndexing
mockWebDAVIndexing mocks the indexing system for WebDAV tests
backend/http/webdav_test.go:191
↓ 1 callersMethodmode
()
backend/http/webdav.go:36
↓ 1 callersFunctionmodifyExcludeInclude
(config *Source)
backend/common/settings/config.go:1305
↓ 1 callersFunctionmuxWithMiddleware
(mux *http.ServeMux)
backend/http/middleware.go:678
↓ 1 callersMethodneedsAdaptiveBootstrap
()
backend/indexing/indexingSchedulerLoop.go:197
↓ 1 callersFunctionnewGrayBmp
(t *testing.T, width, height int)
backend/preview/image_test.go:342
↓ 1 callersFunctionnewGrayGif
(t *testing.T, width, height int)
backend/preview/image_test.go:312
↓ 1 callersFunctionnewGrayTiff
(t *testing.T, width, height int)
backend/preview/image_test.go:327
↓ 1 callersFunctionnewHTTPRequest
Modify newHTTPRequest to accept the hash and use it in the URL path.
backend/http/middleware_test.go:301
↓ 1 callersFunctionnewMockUserBackend
()
backend/auth/json_timing_test.go:43
↓ 1 callersFunctionnewTestRequest
Helper function to create a new HTTP request with optional parameters
backend/http/middleware_test.go:274
↓ 1 callersFunctionnewThrottledWriter
(w io.Writer, limit rate.Limit, burst int, ctx context.Context)
backend/http/download.go:63
↓ 1 callersFunctionnonAdminEditableFieldNameSet
nonAdminEditableFieldNameSet returns User.NonAdminEditable struct field names (e.g. "Locale", "Preview").
backend/http/users.go:328
↓ 1 callersFunctionnormalizeLocale
normalizeLocale converts various locale formats (xx_xx, xx-xx, xxxx) to camelCase format (xxXX) Frontend expects camelCase for compound locales (zhCN,
backend/http/users.go:159
↓ 1 callersFunctionnormalizeScope
normalizeScope ensures scope starts with / and doesn't end with / (except for root)
backend/database/users/conversions.go:123
↓ 1 callersFunctionparseDirGoFiles
parseDirGoFiles parses all .go files in dir and returns their ASTs. Used when the directory is not inside a Go module (e.g. test temp dirs) so package
backend/common/settings/generator.go:212
← previousnext →701–800 of 1,657, ranked by callers