protected override void Initialize(Electrolyte.Portable.IO.FileInfo info, FileMode mode) { File = info; Mode = mode; switch(mode) { case FileMode.Append: case FileMode.Create: case FileMode.CreateNew: case FileMode.OpenOrCreate: case FileMode.Truncate: if(!info.Location.Exists) info.Location.Create(); break; } InternalFileStream = new InternalFileStream(info.Path, ToInternalFileMode(mode)); }
protected override void Initialize(Electrolyte.Portable.IO.PathInfo location, string fileName) { Location = location; FileName = fileName; }
protected FileInfo(Electrolyte.Portable.IO.PathInfo location, string fileName) { Location = location; FileName = fileName; }