Path to file or directory
Whether the item should be hidden (true) or visible (false)
Optional
method: HideMethodMethod to use for hiding the file or directory. The default is "auto", which is "dotPrefix" on Linux and macOS, and "systemFlag" on Windows. "all" will attempt to use all relevant methods for the current operating system.
Promise resolving the final name of the file or directory (as it will change on POSIX systems), and the action(s) taken.
Set the hidden state of a file or directory