Skip to content

Fchmod

[<Interface>]
type Fchmod =
    abstract member Invoke (fd: float, mode: Mode, callback: NoParamCallback) : unit
    abstract member __promisify__ (fd: float, mode: Mode) : Promise<unit>
AssemblyXantham.Fable.Node

Methods

abstract member Invoke (fd: float, mode: Mode, callback: NoParamCallback) : unit

Sets the permissions on the file. No arguments other than a possible exception are given to the completion callback.

See the POSIX fchmod(2) documentation for more detail.

@since v0.4.7

abstract member __promisify__ (fd: float, mode: Mode) : Promise<unit>

Asynchronous fchmod(2) - Change permissions of a file.

Parameter
fdA file descriptor.
modeA file mode. If a string is passed, it is parsed as an octal integer.