MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / CreateFile

Method CreateFile

inventory/file.go:179–179  ·  view source on GitHub ↗

CreateFile creates a file with given parameters, returns created File, default Entity, and storage diff for owner.

(ctx context.Context, root *ent.File, args *CreateFileParameters)

Source from the content-addressed store, hash-verified

177 SetParent(ctx context.Context, files []*ent.File, parent *ent.File) error
178 // CreateFile creates a file with given parameters, returns created File, default Entity, and storage diff for owner.
179 CreateFile(ctx context.Context, root *ent.File, args *CreateFileParameters) (*ent.File, *ent.Entity, StorageDiff, error)
180 // UpgradePlaceholder upgrades a placeholder entity to a real version entity
181 UpgradePlaceholder(ctx context.Context, file *ent.File, modifiedAt *time.Time, entityId int, entityType types.EntityType) error
182 // RemoveMetadata removes metadata from a file

Callers

nothing calls this directly

Implementers 1

fileClientinventory/file.go

Calls

no outgoing calls

Tested by

no test coverage detected