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

OpenOrCreateFile() public method

public OpenOrCreateFile ( VolumePath path, bool ksmDefault = false ) : VolumeFile
path VolumePath
ksmDefault bool
return VolumeFile
        public VolumeFile OpenOrCreateFile(VolumePath path, bool ksmDefault = false)
        {
            VolumeFile file = Open(path, ksmDefault) as VolumeFile;

            if (file == null)
            {
                file = CreateFile(path);
            }

            return file;
        }