AbstractBaseOperations
public class common.abstraction.AbstractBaseOperations- properties:
<string> OperationsTargetPath - The target path to perform these operations on. This will act as the “root” of all operations.
Constructors
internal AbstractBaseOperations(string operationsTargetPath)
- parameters:
<string> operationsTargetPath - The target path to perform these operations on. This will act as the “root” of all operations.
Method Implementations
public Section AddSection(string section)
- parameters:
<string> section - The relative path of the section, relative to the root.
- returns:
<Section> The section that was just added.
public void RemoveSection(string section)
- parameters:
<string> section - The relative path of the section, relative to the root.
public Section[] GetAllSections()
- returns:
<Section[]> A Section[] containing the Section objects representing the directories.
public Section[] GetAllTopLevelSections()
- returns:
<Section[]> A Section[] containing the Section objects representing the directories.
public Section[] GetSectionsNamed(string name)
- parameters:
<string> name - The name of the sections to search for.
- returns:
<Section[]> A Section[] containing the objects representing each directory in the file system.
public Section GetFirstSectionNamed(string name)
- parameters:
<string> name - The name of the sections to search for.
- returns:
<Section> A Section object representing the directory in the file system.
public string AddDocument(string documentName)
- parameters:
<string> documentName - The name of the document to add into the section.
- returns:
<string> The path of the document that was just added.
public void RemoveDocument(string documentName)
- parameters:
<string> path - The name of the document to remove from the section
public string[] GetAllFiles()
- returns:
<string[]> A string[] containing every file stemming down from the root.
public string[] GetAllTopLevelFiles()
- returns:
<string[]> A string[] containing every top level file at the target path
public string[] GetFilesNamed(string filename)
- parameters:
<string> filename - The filename to match with
- returns:
<string[]> A string[] with all the files that matched the filename
public string GetFirstFileNamed(string filename)
- parameters:
<string> filename - The filename to match with
- returns:
<string> A string containing the full path of the first matched file