Path to the directory to check for existence, can contain forward slashes (/) to access subfolders.
Returns a promise which can either fail (string with reason) or succeed (boolean set to true if directory exists, otherwise false).
When the API has not been properly configured using configure, an exception is thrown detailing the missing information.
Below is a simplified example.
import { api } from "@hboictcloud/api";
const data = await api.directoryExists("test");
console.log(data);
Checks if a directory exists inside the uploads-folder on the configured HBO-ICT.Cloud environment.