MCPcopy
hub / github.com/syncthing/syncthing / newFolderConfiguration

Function newFolderConfiguration

lib/model/model.go:3456–3463  ·  view source on GitHub ↗
(w config.Wrapper, id, label string, fsType config.FilesystemType, path string)

Source from the content-addressed store, hash-verified

3454}
3455
3456func newFolderConfiguration(w config.Wrapper, id, label string, fsType config.FilesystemType, path string) config.FolderConfiguration {
3457 fcfg := w.DefaultFolder()
3458 fcfg.ID = id
3459 fcfg.Label = label
3460 fcfg.FilesystemType = fsType
3461 fcfg.Path = path
3462 return fcfg
3463}
3464
3465type updatedPendingFolder struct {
3466 FolderID string `json:"folderID"`

Calls 1

DefaultFolderMethod · 0.65