Path.rmdirSync() method
pathlib-ts > Path > rmdirSync
Path.rmdirSync() method
Section titled “Path.rmdirSync() method”Remove the directory synchronously.
Signature:
rmdirSync(): void;Returns:
void
Remarks
Section titled “Remarks”Mirrors Path.rmdir() but executes synchronously.
Example
Section titled “Example”Clearing an empty directory synchronously
import { Path } from "pathlib-ts";
const tmp = new Path("./tmp/output");tmp.rmdirSync();