Options controlling the behavior of writeFileAtomic().

Synopsis

Declared in <folly/FileUtil.h>

class WriteFileAtomicOptions;

Member Functions

Name

Description

WriteFileAtomicOptions [constructor]

Constructs the options with default values.

setPermissions

Sets the mode bits used for the temporary file.

setSyncType

Sets whether the data is synced to storage before the rename.

setTemporaryDirectory

Sets the directory used for the temporary file.

Data Members

Name

Description

permissions

Permission bits for the temporary file.

syncType

Whether to sync before rename.

temporaryDirectory

Directory for the temporary file.

Created with MrDocs