forked from scriptcs/scriptcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIFileSystem.cs
More file actions
45 lines (27 loc) · 1008 Bytes
/
IFileSystem.cs
File metadata and controls
45 lines (27 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.IO;
namespace ScriptCs
{
public interface IFileSystem
{
IEnumerable<string> EnumerateFiles(string dir, string search);
void Copy(string source, string dest, bool overwrite);
bool DirectoryExists(string path);
void CreateDirectory(string path);
void DeleteDirectory(string path);
string ReadFile(string path);
string[] ReadFileLines(string path);
DateTime GetLastWriteTime(string file);
bool IsPathRooted(string path);
string GetFullPath(string path);
string CurrentDirectory { get; }
string NewLine { get; }
string GetWorkingDirectory(string path);
void Move(string source, string dest);
bool FileExists(string path);
void FileDelete(string path);
IEnumerable<string> SplitLines(string value);
Stream CreateFileStream(string filePath, FileMode mode);
}
}