Skip to main content

FileSystemExtensions

A static class in Alta.IO, Alta.Utilities.

File system helpers.

Methods​

MemberWhat it is
static void ClearDirectory(DirectoryInfo directory)Deletes every file and subfolder inside the directory, clearing read-only flags first. Keeps the directory itself.
static string FullNameRelativeToProject(FileSystemInfo info)Turns a full path under the Unity data folder into an Assets/... project path with forward slashes.