Function: file.EnsurePathExists

Ensures a (folder) path exists and creates intermediate folders if needed.

Syntax

{
	"method": "file.EnsurePathExists",
	"params": {
		"path": "...",
	},
	"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
AdvFuture<bool> EnsurePathExists( AdvString path );
public Task<bool> EnsurePathExistsAsync(string path, CancellationToken ct = default);
ensurePathExists(path: string): Promise<boolean>;

Parameters

path : string

Only existing root folders may be used.

Result : bool

True if successful.

Remarks

This method requires API write access.