public override VolumeFile SaveFile(VolumePath path, FileContent content, bool verifyFreeSpace = true)
{
try
{
if (verifyFreeSpace && !IsRoomFor(path, content))
{
return null;
}
}
catch (KOSPersistenceException)
{
throw new KOSPersistenceException("Can't save file over a directory: " + path);
}
HarddiskDirectory directory = ParentDirectoryForPath(path, true);
return directory.Save(path.Name, content) as VolumeFile;
}