2020-09-21 10:14:44 -07:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
2020-10-22 09:45:48 -07:00
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Library.Utilities
|
2020-09-21 10:14:44 -07:00
|
|
|
|
{
|
|
|
|
|
|
public interface IIOProvider
|
|
|
|
|
|
{
|
|
|
|
|
|
bool FileExists(string path);
|
|
|
|
|
|
|
|
|
|
|
|
bool DirectoryExists(string path);
|
|
|
|
|
|
|
|
|
|
|
|
bool CreateDirectory(string path);
|
|
|
|
|
|
|
|
|
|
|
|
void DeleteDirectory(string path);
|
|
|
|
|
|
|
|
|
|
|
|
void WriteAllText(string path, string content);
|
|
|
|
|
|
|
|
|
|
|
|
string ReadAllText(string path);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|