kOS.Safe.Persistence.Harddisk.CreateFile C# (CSharp) Method

CreateFile() public method

public CreateFile ( VolumePath path ) : VolumeFile
path VolumePath
return VolumeFile
        public override VolumeFile CreateFile(VolumePath path)
        {
            if (path.Depth == 0)
            {
                throw new KOSPersistenceException("Can't create a file over root directory");
            }

            HarddiskDirectory directory = ParentDirectoryForPath(path, true);

            return directory.CreateFile(path.Name);
        }