Guest User

Untitled

a guest
Jul 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. public override void FinishedLaunching (NSObject notification)
  2.         {
  3.             bool isRemovable = false;
  4.             bool isWritable = false;
  5.             bool isUnmountable = false;
  6.             string hasDescription = string.Empty;
  7.             string hasFilesystemType = string.Empty;
  8.            
  9.             foreach (string mount in NSWorkspace.SharedWorkspace.MountedLocalVolumePaths)
  10.             {
  11.                 NSWorkspace.SharedWorkspace.GetFileSystemInfo(mount, isRemovable, isWritable, isUnmountable, hasDescription, hasFilesystemType);
  12.                 Console.WriteLine("Mount Point: {0}", mount);
  13.             }
Add Comment
Please, Sign In to add comment