42 IEnumerable<string>
GetFiles(
string path,
string extension,
bool recursive);
112 void Copy(
string src,
string dst,
bool overwrite =
true);
120 void Move(
string src,
string dst,
bool overwrite =
true);
Defines the interface for a file system.
void SetCurrentDirectory(string path)
Sets the current Directory.
void DeleteDirectory(string path, bool recursive)
Deletes a directory.
bool IsDirectory(string path)
Returns true if the given path is a directory.
string GetCurrentDirectory()
Returns the Current Directory.
void CreateDirectory(string path, bool recursive=false)
Creates a new directory.
void Copy(string src, string dst, bool overwrite=true)
Copies a file or directory to a new location.
IEnumerable< string > GetDirectories(string path, bool recursive)
Returns all directories in the given directory.
Stream OpenWrite(string path, BadWriteMode mode)
Opens a file for writing.
IEnumerable< string > GetFiles(string path, string extension, bool recursive)
Returns all files in the given directory that match the specified extension.
string GetStartupDirectory()
The Startup Directory of the Application.
bool Exists(string path)
Returns true if the given path is a file or directory.
bool IsFile(string path)
Returns true if the given path is a file.
void Move(string src, string dst, bool overwrite=true)
Moves a file or directory to a new location.
string GetFullPath(string path)
Returns the full path of the given path.
void DeleteFile(string path)
Deletes a file.
Stream OpenRead(string path)
Opens a file for reading.
Contains IO Implementation for the BadScript2 Runtime.
BadWriteMode
The Write Modes of the File System Abstraction.