mirror of
https://github.com/Alee14/shiftos-challenge.git
synced 2025-01-22 18:12:15 +00:00
Moving, copying and deleting.
This commit is contained in:
parent
b71f731e25
commit
301bdc77d2
1 changed files with 26 additions and 0 deletions
|
@ -129,5 +129,31 @@ namespace ShiftOS
|
|||
{
|
||||
Directory.CreateDirectory(MapToEnvironmentPath(InPath));
|
||||
}
|
||||
|
||||
public void MoveDirectory(string InPath, string OutPath)
|
||||
{
|
||||
Directory.Move(MapToEnvironmentPath(InPath), MapToEnvironmentPath(OutPath));
|
||||
}
|
||||
|
||||
public void CopyFile(string InPath, string OutPath)
|
||||
{
|
||||
File.Copy(MapToEnvironmentPath(InPath), MapToEnvironmentPath(OutPath));
|
||||
}
|
||||
|
||||
public void MoveFile(string InPath, string OutPath)
|
||||
{
|
||||
File.Move(MapToEnvironmentPath(InPath), MapToEnvironmentPath(OutPath));
|
||||
}
|
||||
|
||||
public void DeleteFile(string InPath)
|
||||
{
|
||||
File.Delete(MapToEnvironmentPath(InPath));
|
||||
}
|
||||
|
||||
public void DeleteDirectory(string InPath, bool Recurse = false)
|
||||
{
|
||||
Directory.Delete(MapToEnvironmentPath(InPath), Recurse);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue