private bool shouldClunkFid = false; // should dispose clunk fid #endregion Fields #region Constructors public StyxStream(uint fid, FileMode mode, FileAccess access, StyxClientManager manager) { this.manager = manager; exists = true; setMode(mode, access); connect(fid); }
public StyxStream(String path, FileMode mode, FileAccess access, StyxClientManager manager) { while (path.StartsWith("/")) path = path.Remove(0, 1); while (path.EndsWith("/")) path = path.Remove(path.Length - 1); this.manager = manager; walkToFile(path); setMode(mode, access ); if (create) createFile(path); connect(fid); }
public Program() { mn = new StyxClientManager("127.0.0.1", 564, "user", "/", false); checkCreateDirectory(); checkCreateFile(); }
/// <summary> /// initialize stream by parent fid and child's name /// </summary> /// <param name="parent_fid">parent fid</param> /// <param name="name">child's name</param> /// <param name="mode"></param> /// <param name="access"></param> /// <param name="manager"></param> public StyxStream( uint parent_fid, String name, FileMode mode, FileAccess access, StyxClientManager manager) { this.manager = manager; walkToChild(parent_fid, name); setMode(mode, access); if (create) createFile(parent_fid, name); connect(fid); }