diff options
Diffstat (limited to 'src/SMAPI.Toolkit/Utilities/PathLookups/IFileLookup.cs')
-rw-r--r-- | src/SMAPI.Toolkit/Utilities/PathLookups/IFileLookup.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/SMAPI.Toolkit/Utilities/PathLookups/IFileLookup.cs b/src/SMAPI.Toolkit/Utilities/PathLookups/IFileLookup.cs new file mode 100644 index 00000000..d43b5141 --- /dev/null +++ b/src/SMAPI.Toolkit/Utilities/PathLookups/IFileLookup.cs @@ -0,0 +1,16 @@ +using System.IO; + +namespace StardewModdingAPI.Toolkit.Utilities.PathLookups +{ + /// <summary>An API for file lookups within a root directory.</summary> + internal interface IFileLookup + { + /// <summary>Get the file for a given relative file path, if it exists.</summary> + /// <param name="relativePath">The relative path.</param> + FileInfo GetFile(string relativePath); + + /// <summary>Add a relative path that was just created by a SMAPI API.</summary> + /// <param name="relativePath">The relative path.</param> + void Add(string relativePath); + } +} |