Skip to content

Commit

Permalink
Mac path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-saplin committed Apr 3, 2020
1 parent 1fb6aca commit 48f8421
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Saplin.StorageSpeedMeter/Helpers/RamDiskUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static long FreeRam
}


private static string[] macContainsExpcetions = { "/private/var" };
private static string[] macContainsExpcetions = { "/private/var", "/dev", "/System/Volumes/Data/home" };
private static string[] linuxContainsExpcetions = { "/sys", "/snap", "/dev", "/run", "/proc" };
//private static string[] androidIsExpcetions = { "/", "/vendor", "/firmware", "/dsp", "/persist", "/system", "/cache" };
//private static string[] androidContainsExpcetions = { "/mnt/runtime", "/data/var", "/mnt/media_rw" };
Expand Down Expand Up @@ -128,7 +128,7 @@ public static string GetTempFilePath(string drivePath)

if (RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.OSX))
{
if (drivePath == "/") //Mac system disk
if (drivePath == "/" || drivePath == "/System/Volumes/Data") //Mac system disk
{
path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), fileName);
}
Expand Down
2 changes: 1 addition & 1 deletion Saplin.StorageSpeedMeter/Saplin.StorageSpeedMeter.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.1.4</Version>
<ReleaseVersion>2.0.1</ReleaseVersion>
</PropertyGroup>
Expand Down

0 comments on commit 48f8421

Please sign in to comment.