Check if a file or directory is accessible with the given modes.
Modes can be a combination of 'r', 'w', and 'x'.
The type of the path ('file' or 'directory').
The access modes to check ('r', 'w', 'x' or a combination).
The path to check.
A promised boolean indicating if the path is accessible.
Check if a file or directory is accessible with the given modes.
Modes can be a combination of 'r', 'w', and 'x'.