-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added read/write functionality for ruleset in json
- Loading branch information
Showing
7 changed files
with
299 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.Collections.Generic; | ||
using System.IO; | ||
|
||
namespace DLP_Win | ||
{ | ||
class DirecotryHelper | ||
{ | ||
|
||
public List<string> getDrives() | ||
{ | ||
DriveInfo[] allDrives = DriveInfo.GetDrives(); | ||
var drives = new List<string>(); | ||
foreach (DriveInfo drive in allDrives) | ||
{ | ||
|
||
if (drive.DriveType == DriveType.Fixed || drive.DriveType == DriveType.Removable) | ||
{ | ||
//string[] files = Directory.GetFiles(drive.RootDirectory.FullName, "*", SearchOption.AllDirectories); | ||
|
||
//foreach (string file in files) | ||
//{ | ||
// // do something with the file | ||
//} | ||
drives.Add(drive.RootDirectory.FullName); | ||
} | ||
} | ||
|
||
return drives; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="DLP_Win.Properties" GeneratedClassName="Settings"> | ||
<Profiles /> | ||
<Settings> | ||
<Setting Name="AHV_NR" Type="System.String" Scope="Application"> | ||
<Value Profile="(Default)">.*756\.\d{4}\.\d{4}\.\d{2}.*</Value> | ||
</Setting> | ||
<Setting Name="CUSTOMER_NR" Type="System.String" Scope="Application"> | ||
<Value Profile="(Default)">\d{2}\.\d{5}-\d</Value> | ||
</Setting> | ||
</Settings> | ||
</SettingsFile> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.