@@ -188,7 +188,7 @@ Asynchronously checks whether the current process can access a file. This method
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the target file.|
| mode | number | No| Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**. <br/>The options are as follows:<br/>- **0**: check whether the file exists. <br/>- **1**: check whether the current process has the execute permission on the file. <br/>- **2**: check whether the current process has the write permission on the file. <br/>- **4**: check whether the current process has the read permission on the file.|
| mode | number | No| Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**. <br/>The options are as follows:<br/>- **0**: check whether the file exists. <br/>- **1**: check whether the current process has the execute permission on the file. <br/>- **2**: check whether the current process has the write permission on the file. <br/>- **4**: check whether the current process has the read permission on the file.|
- Return value
| Type| Description|
...
...
@@ -215,7 +215,7 @@ Asynchronously checks whether the current process can access a file. This method
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the target file.|
| mode | number | No| Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**. <br/>The options are as follows:<br/>- **0**: check whether the file exists. <br/>- **1**: check whether the current process has the execute permission on the file. <br/>- **2**: check whether the current process has the write permission on the file. <br/>- **4**: check whether the current process has the read permission on the file.|
| mode | number | No| Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**. <br/>The options are as follows:<br/>- **0**: check whether the file exists. <br/>- **1**: check whether the current process has the execute permission on the file. <br/>- **2**: check whether the current process has the write permission on the file. <br/>- **4**: check whether the current process has the read permission on the file.|
| callback | AsyncCallback<void> | Yes| Callback invoked when the file is asynchronously checked.|
- Example
...
...
@@ -237,7 +237,7 @@ Synchronously checks whether the current process can access the specified file.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the target file.|
| mode | number | No| Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**. <br/>The options are as follows:<br/>- **0**: check whether the file exists. <br/>- **1**: check whether the current process has the execute permission on the file. <br/>- **2**: check whether the current process has the write permission on the file. <br/>- **4**: check whether the current process has the read permission on the file.|
| mode | number | No| Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is **0**. <br/>The options are as follows:<br/>- **0**: check whether the file exists. <br/>- **1**: check whether the current process has the execute permission on the file. <br/>- **2**: check whether the current process has the write permission on the file. <br/>- **4**: check whether the current process has the read permission on the file.|
- Example
```js
...
...
@@ -434,7 +434,7 @@ Asynchronously creates a directory. This method uses a promise to return the res
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the directory to create.|
| mode | number | No| Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**. <br/>- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| mode | number | No| Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**. <br/>- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
- Return value
| Type| Description|
...
...
@@ -461,7 +461,7 @@ Asynchronously creates a directory. This method uses a callback to return the re
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the directory to create.|
| mode | number | No| Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**. <br/>- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| mode | number | No| Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**. <br/>- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| callback | AsyncCallback<void> | Yes| Callback invoked when the directory is created asynchronously.|
- Example
...
...
@@ -484,7 +484,7 @@ Synchronously creates a directory.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the directory to create.|
| mode | number | No| Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**. <br/>- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| mode | number | No| Permission on the directory to create. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o775**. <br/>- **0o775**: The owner has the read, write, and execute permissions, and other users have the read and execute permissions. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
- Example
```js
...
...
@@ -502,8 +502,8 @@ Asynchronously opens a file. This method uses a promise to return the result.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the target file.|
| flags | number | No| Option for opening a file. You must specify one of the following options. By default, the file is opened in read-only mode. <br/>- **0o0**: Open the file in read-only mode. <br/>- **0o1**: Open the file in write-only mode. <br/>- **0o2**: Open the file in read/write mode. <br/>You can also specify the following options, separated using a bitwise OR operator (|). By default, no extra option is specified. <br/>- **0o100**: If the file does not exist, create it. If you use this option, you must also specify **mode**. <br/>- **0o200**: If **0o100** is added and the file already exists, throw an exception. <br/>- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0. <br/>- **0o2000**: Open the file in append mode. New data will be appended to the file (added to the end of the file). <br/>- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os. <br/>- **0o200000**: If **path** points to a directory, throw an exception. <br/>- **0o400000**: If **path** points to a symbolic link, throw an exception. <br/>- **0o4010000**: Open the file in synchronous I/O mode.|
| mode | number | No| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**. <br/>- **0o666**: The owner, user group, and other users have the read and write permissions on the file. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| flags | number | No| Option for opening a file. You must specify one of the following options. By default, the file is opened in read-only mode. <br/>- **0o0**: Open the file in read-only mode. <br/>- **0o1**: Open the file in write-only mode. <br/>- **0o2**: Open the file in read/write mode. <br/>You can also specify the following options, separated using a bitwise OR operator (|). By default, no extra option is specified. <br/>- **0o100**: If the file does not exist, create it. If you use this option, you must also specify **mode**. <br/>- **0o200**: If **0o100** is added and the file already exists, throw an exception. <br/>- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0. <br/>- **0o2000**: Open the file in append mode. New data will be appended to the file (added to the end of the file). <br/>- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os. <br/>- **0o200000**: If **path** points to a directory, throw an exception. <br/>- **0o400000**: If **path** points to a symbolic link, throw an exception. <br/>- **0o4010000**: Open the file in synchronous I/O mode.|
| mode | number | No| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**. <br/>- **0o666**: The owner, user group, and other users have the read and write permissions on the file. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
- Return value
| Type| Description|
...
...
@@ -530,8 +530,8 @@ Asynchronously opens a file. This method uses a callback to return the result.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the target file.|
| flags | number | Yes| Option for opening a file. You must specify one of the following options. By default, the file is opened in read-only mode. <br/>- **0o0**: Open the file in read-only mode. <br/>- **0o1**: Open the file in write-only mode. <br/>- **0o2**: Open the file in read/write mode. <br/>You can also specify the following options, separated using a bitwise OR operator (|). By default, no extra option is specified. <br/>- **0o100**: If the file does not exist, create it. If you use this option, you must also specify **mode**. <br/>- **0o200**: If **0o100** is added and the file already exists, throw an exception. <br/>- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0. <br/>- **0o2000**: Open the file in append mode. New data will be appended to the file (added to the end of the file). <br/>- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os. <br/>- **0o200000**: If **path** points to a directory, throw an exception. <br/>- **0o400000**: If **path** points to a symbolic link, throw an exception. <br/>- **0o4010000**: Open the file in synchronous I/O mode.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**. <br/>- **0o666**: The owner, user group, and other users have the read and write permissions on the file. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| flags | number | Yes| Option for opening a file. You must specify one of the following options. By default, the file is opened in read-only mode. <br/>- **0o0**: Open the file in read-only mode. <br/>- **0o1**: Open the file in write-only mode. <br/>- **0o2**: Open the file in read/write mode. <br/>You can also specify the following options, separated using a bitwise OR operator (|). By default, no extra option is specified. <br/>- **0o100**: If the file does not exist, create it. If you use this option, you must also specify **mode**. <br/>- **0o200**: If **0o100** is added and the file already exists, throw an exception. <br/>- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0. <br/>- **0o2000**: Open the file in append mode. New data will be appended to the file (added to the end of the file). <br/>- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os. <br/>- **0o200000**: If **path** points to a directory, throw an exception. <br/>- **0o400000**: If **path** points to a symbolic link, throw an exception. <br/>- **0o4010000**: Open the file in synchronous I/O mode.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**. <br/>- **0o666**: The owner, user group, and other users have the read and write permissions on the file. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| callback | AsyncCallback <void> | Yes| Callback invoked when the file is open asynchronously.|
- Example
...
...
@@ -552,8 +552,8 @@ Synchronously opens a file.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the target file.|
| flags | number | No| Option for opening a file. You must specify one of the following options. By default, the file is opened in read-only mode. <br/>- **0o0**: Open the file in read-only mode. <br/>- **0o1**: Open the file in write-only mode. <br/>- **0o2**: Open the file in read/write mode. <br/>You can also specify the following options, separated using a bitwise OR operator (|). By default, no extra option is specified. <br/>- **0o100**: If the file does not exist, create it. If you use this option, you must also specify **mode**. <br/>- **0o200**: If **0o100** is added and the file already exists, throw an exception. <br/>- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0. <br/>- **0o2000**: Open the file in append mode. New data will be appended to the file (added to the end of the file). <br/>- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os. <br/>- **0o200000**: If **path** points to a directory, throw an exception. <br/>- **0o400000**: If **path** points to a symbolic link, throw an exception. <br/>- **0o4010000**: Open the file in synchronous I/O mode.|
| mode | number | No| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**. <br/>- **0o666**: The owner, user group, and other users have the read and write permissions on the file. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| flags | number | No| Option for opening a file. You must specify one of the following options. By default, the file is opened in read-only mode. <br/>- **0o0**: Open the file in read-only mode. <br/>- **0o1**: Open the file in write-only mode. <br/>- **0o2**: Open the file in read/write mode. <br/>You can also specify the following options, separated using a bitwise OR operator (|). By default, no extra option is specified. <br/>- **0o100**: If the file does not exist, create it. If you use this option, you must also specify **mode**. <br/>- **0o200**: If **0o100** is added and the file already exists, throw an exception. <br/>- **0o1000**: If the file exists and is open in write-only or read/write mode, truncate the file length to 0. <br/>- **0o2000**: Open the file in append mode. New data will be appended to the file (added to the end of the file). <br/>- **0o4000**: If **path** points to a named pipe (also known as a FIFO), block special file, or character special file, perform non-blocking operations on the open file and in subsequent I/Os. <br/>- **0o200000**: If **path** points to a directory, throw an exception. <br/>- **0o400000**: If **path** points to a symbolic link, throw an exception. <br/>- **0o4010000**: Open the file in synchronous I/O mode.|
| mode | number | No| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). The default value is **0o666**. <br/>- **0o666**: The owner, user group, and other users have the read and write permissions on the file. <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
- Return value
| Type| Description|
...
...
@@ -915,7 +915,7 @@ Asynchronously changes the file permissions based on its path. This method uses
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the target file.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
- Return value
| Type| Description|
...
...
@@ -942,7 +942,7 @@ Asynchronously changes the file permissions based on its path. This method uses
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the target file.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| callback | AsyncCallback<void> | Yes| Callback invoked when the file permissions are changed asynchronously.|
- Example
...
...
@@ -963,7 +963,7 @@ Synchronously changes the file permissions based on its path.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| path | string | Yes| Absolute path of the target file.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
- Example
```js
...
...
@@ -1771,7 +1771,7 @@ Asynchronously changes the file permissions based on the file descriptor. This m
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| fd | number | Yes| File descriptor of the target file.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
- Return value
| Name| Description|
...
...
@@ -1798,7 +1798,7 @@ Asynchronously changes the file permissions based on the file descriptor. This m
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| fd | number | Yes| File descriptor of the target file.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| callback | AsyncCallback <void> | Yes| Callback invoked when the file permissions are changed asynchronously.|
- Example
...
...
@@ -1819,7 +1819,7 @@ Synchronously changes the file permissions based on the file descriptor.
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| fd | number | Yes| File descriptor of the target file.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|
| mode | number | Yes| Permissions on the file. You can specify multiple permissions, separated using a bitwise OR operator (|). <br/>- **0o700**: The owner has the read, write, and execute permissions. <br/>- **0o400**: The owner has the read permission. <br/>- **0o200**: The owner has the write permission. <br/>- **0o100**: The owner has the execute permission. <br/>- **0o070**: The user group has the read, write, and execute permissions. <br/>- **0o040**: The user group has the read permission. <br/>- **0o020**: The user group has the write permission. <br/>- **0o010**: The user group has the execute permission. <br/>- **0o007**: Other users have the read, write, and execute permissions. <br/>- **0o004**: Other users have the read permission. <br/>- **0o002**: Other users have the write permission. <br/>- **0o001**: Other users have the execute permission.|