static void Main(string[] args) { using (ComplexFile cf = ComplexFile.OpenOrCreate("twoja_stara")) { cf.CreateDirectory("zapierdala2", "root"); } }
public ProxyStream(ComplexFile cf, FileHeader fileHeader) { settings = ComplexFile.Settings; this.cf = (FileStream)cf; startBlock = fileHeader.BlockNumber; size = (long)fileHeader.Size; Position = 0; }
/* ** Create ComplexFile with specified name */ public static ComplexFile Create(string path, ICFSettings settings) { ComplexFile complexFile = new ComplexFile(path, FileMode.Create); complexFile.Write(Utilities.ToBytes(Settings), 0, Settings.BlockSize); complexFile.Write(new byte[Settings.BlockSize], 0, Settings.BlockSize); complexFile.Close(); return(Open(path)); }