# File Management > **NOTE:** >The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import ``` import fileio from '@ohos.fileio'; ``` ## Required Permissions None ## Usage Before using this module to perform operations on a file or directory, you must obtain the absolute path of the file or directory. For details, see **getOrCreateLocalDir** in the **Context** module. Absolute file or directory path = Application directory path + File name or directory name For example, if the application directory obtained by using the API is _dir_ and the file name is _file name_**.txt**, the absolute path of the file is as follows: ``` let path = dir + "file name.txt" ``` The file descriptor is as follows: ``` let fd = fileio.openSync(path); ``` ## fileio.statSync statSync\(path:string\): Stat Synchronously obtains file information. - Parameters
Options for accessing the file. You can specify multiple options, separated with a bitwise OR operator (|). The default value is 0. |