MCPcopy Create free account
hub / github.com/gotenberg/gotenberg / NewFileSystem

Function NewFileSystem

pkg/gotenberg/fs.go:50–55  ·  view source on GitHub ↗

NewFileSystem initializes a new [FileSystem] instance with a unique working directory.

(mkdirAll MkdirAll)

Source from the content-addressed store, hash-verified

48// NewFileSystem initializes a new [FileSystem] instance with a unique working
49// directory.
50func NewFileSystem(mkdirAll MkdirAll) *FileSystem {
51 return &FileSystem{
52 workingDir: uuid.NewString(),
53 mkdirAll: mkdirAll,
54 }
55}
56
57// WorkingDir returns the unique name of the working directory.
58func (fs *FileSystem) WorkingDir() string {

Callers 5

ProvisionMethod · 0.92
newChromiumBrowserFunction · 0.92
newLibreOfficeProcessFunction · 0.92

Calls

no outgoing calls