kOS.Safe.Persistence.Volume.SaveFile C# (CSharp) Method

SaveFile() public method

public SaveFile ( VolumeFile volumeFile ) : VolumeFile
volumeFile VolumeFile
return VolumeFile
        public VolumeFile SaveFile(VolumeFile volumeFile)
        {
            return SaveFile(volumeFile.Path, volumeFile.ReadAll());
        }

Same methods

Volume::SaveFile ( VolumePath path, FileContent content, bool verifyFreeSpace = true ) : VolumeFile

Usage Example

Example #1
0
 protected bool CopyFile(VolumeFile volumeFile, GlobalPath destinationPath, Volume targetVolume,
     bool verifyFreeSpace)
 {
     return targetVolume.SaveFile(destinationPath, volumeFile.ReadAll(), verifyFreeSpace) != null;
 }
All Usage Examples Of kOS.Safe.Persistence.Volume::SaveFile