summaryrefslogtreecommitdiff
path: root/src/SMAPI.Toolkit/Utilities/PathLookups/IFileLookup.cs
blob: d43b5141bd50d061a3ded53b0f707282bf3b2ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
    }
}