/// <summary> /// Hidden class constructor /// </summary> protected FileSystemModel() { mModel = null; }
/// <summary> /// Parameterized class constructor /// </summary> public FileSystemModel(PathModel model) { mModel = model; Debug.Assert(model != null, "Construction of FSItem without PathModel is not supported!"); }
/// <summary> /// Determine whether two <seealso cref="PathModel"/> objects /// describe the same location/item in the file system or not. /// /// Method implements <seealso cref="IEqualityComparer{IPathModel}"/> interface. /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <returns></returns> public bool Equals(IPathModel x, IPathModel y) { return(PathModel.Compare(x, y)); }
/// <summary> /// Determine whether two <seealso cref="PathModel"/> objects describe the same /// location/item in the file system or not. /// /// Method implements <seealso cref="IEquatable{IPathModel}"/> interface. /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(IPathModel other) { return(PathModel.Compare(this, other)); }
/// <summary> /// Determine whether a given path is an existing directory or not. /// </summary> /// <returns>true if this directory exists and otherwise false</returns> public bool DirectoryPathExists() { return(PathModel.DirectoryPathExists(mPath)); }