Skip to content

Commit

Permalink
Added the possibility to get the current directory (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Feb 4, 2023
1 parent 2c3a899 commit 5bf5d43
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PeyrSharp.Env/FileSys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,13 @@ public static StorageUnits GetDriveStorageUnit(DriveInfo driveInfo)
return StorageUnits.Byte;
}
}

/// <summary>
/// Gets the current directory of the application.
/// </summary>
/// <returns>
/// A string representing the full path of the current directory.
/// </returns>
public static string CurrentDirectory => Directory.GetCurrentDirectory();
}
}

0 comments on commit 5bf5d43

Please sign in to comment.