18 lines
550 B
C#
18 lines
550 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Notes;
|
|
|
|
public interface IFileService
|
|
{
|
|
string Combine(string args0, string args1);
|
|
string GetRandomFileName();
|
|
IEnumerable<string> EnumerateFiles(string path, string patten);
|
|
string GetFileName(string filename);
|
|
string ReadAllText(string filename);
|
|
DateTime GetLastWriteTime(string filename);
|
|
bool ExistsFile(string filename);
|
|
void Delete(string path);
|
|
void WriteAllText(string path, string text);
|
|
void EnsureDirectory(string path, bool isFile);
|
|
} |