aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/FileSkimmer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/Applications/FileSkimmer.cs')
-rw-r--r--ShiftOS.WinForms/Applications/FileSkimmer.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/FileSkimmer.cs b/ShiftOS.WinForms/Applications/FileSkimmer.cs
index ec8fd00..2881dc0 100644
--- a/ShiftOS.WinForms/Applications/FileSkimmer.cs
+++ b/ShiftOS.WinForms/Applications/FileSkimmer.cs
@@ -258,6 +258,29 @@ namespace ShiftOS.WinForms.Applications
public void OnUpgrade()
{
}
+
+ private void newFolderToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ Infobox.PromptText("New Folder", "Please type a name for your folder.", (path) =>
+ {
+ if (!string.IsNullOrWhiteSpace(path))
+ {
+ if(!Utils.DirectoryExists(this.currentdir + "/" + path))
+ {
+ Utils.CreateDirectory(currentdir + "/" + path);
+ this.ResetList();
+ }
+ else
+ {
+ Infobox.Show("New folder", "A folder with that name already exists.");
+ }
+ }
+ else
+ {
+ Infobox.Show("New folder", "You can't create a folder with no name!");
+ }
+ });
+ }
}