Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
[4.2.0] Added path for accessing config screen on startup, can now se…
Browse files Browse the repository at this point in the history
…t up rclone remotes from scratch within the GUI

hotfix for remote name regex

(removed regex)

Update README.md
  • Loading branch information
andrewiankidd committed Dec 3, 2016
1 parent d2b2545 commit d999793
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 23 deletions.
Binary file modified .vs/rcloneExplorer/v14/.suo
Binary file not shown.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#rcloneExplorer <img align="right" width="64px" src="http://i.imgur.com/T4We4ZK.png">
<hr>

<img align="right" width="50%" src="https://i.imgur.com/8V4ZQm2.png">
<img align="right" width="50%" src="https://i.imgur.com/vtOep1f.png">
>rcloneExplorer works by taking output from rclone, which does all the heavy lifting. Remotes which have been set up via rclones config proces should be fully usable in rcloneExplorer.
rcloneExplorer can only access rclone configured remotes.

Expand All @@ -23,7 +23,7 @@ rcloneExplorer can only access rclone configured remotes.
<br/><br/>

###Syncing
<img align="right" width="50%" src="https://i.imgur.com/B0ov7IZ.png">
<img align="right" width="50%" src="https://i.imgur.com/F7qcBPd.png">
>rcloneExplorer provides a simple GUI to set up and schedule a regular sync option, to keep your files backed up and safe on a regular basis. [Currently a WIP]
<br/><br/>
Expand All @@ -33,7 +33,7 @@ rcloneExplorer can only access rclone configured remotes.
<br/><br/>

###File Transfers
<img align="left" width="50%" src="https://i.imgur.com/H48vT3K.png">
<img align="left" width="50%" src="https://i.imgur.com/KodgC3I.png">
>You can easily upload & download files to and from configured remotes, with a nice easy to use GUI and transparent on-the-fly encryption/decryption as needed.
<br/><br/>
Expand All @@ -43,5 +43,5 @@ rcloneExplorer can only access rclone configured remotes.
<br/><br/>

###GUI for Config Management
<img align="right" width="50%" src="https://i.imgur.com/xaCKsQU.png">
<img align="right" width="50%" src="https://i.imgur.com/1BpaGTM.png">
><p>A lot of people seem intimidated by the rclone CLI, especially during the initial configuration. In an attempt to remedy this rcloneExplorer now has an easy to use configuration 'wizard' which can be used to manage remotes and encryption settings</p>
23 changes: 12 additions & 11 deletions rcloneExplorer/rcloneExplorer.Auxiliary.SetupWiz.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;

Expand All @@ -14,7 +15,7 @@ namespace rcloneExplorer
public partial class rcloneExplorerSetupWiz : Form
{
rcloneExplorerInternalExec internalExecHandler;
rcloneExplorerExploreHandler exploreHandler;
rcloneExplorerExploreHandler exploreHandler;
IniFile iniSettings;
string[] providers = { "crypt", "amazon cloud drive", "s3", "b2", "dropbox", "google cloud storage", "drive", "hubic", "onedrive", "swift", "yandex" };

Expand Down Expand Up @@ -69,19 +70,19 @@ private void loadConfigs()

private void openSelectedRemote()
{
if (lstConfigs.SelectedItems.Count>0)
{
if (!String.IsNullOrEmpty(lstConfigs.SelectedItems[0].Text))
{
//write newly selected config to ini
iniSettings.Write("rcloneRemote", lstConfigs.SelectedItems[0].Text.ToString());
if (lstConfigs.SelectedItems.Count > 0 && !String.IsNullOrEmpty(lstConfigs.SelectedItems[0].Text))
{
//write newly selected config to ini
iniSettings.Write("rcloneRemote", lstConfigs.SelectedItems[0].Text.ToString());
//not doing first time setup so clear the CD and refresh view
if (!rcloneExplorer.initialSetup) {
//set current path to root
rcloneExplorer.remoteCD = "";
//refresh the explorer lst
exploreHandler.refreshlstExplorer();
//close config screen
this.Close();
}
}
//close config screen
this.Close();
}
}

Expand Down Expand Up @@ -145,7 +146,7 @@ private void cmbProviderList_TextChanged(object sender, EventArgs e)
//if user doesnt enter a valid remote name, keep asking
while (String.IsNullOrEmpty(nRemoteName.Trim()))
{
nRemoteName = PromptGenerator.ShowDialog("Remote Name:", "");
nRemoteName = PromptGenerator.ShowDialog("Remote Name:", "Please enter an alphanumeric name for the remote");
}

//build command list
Expand Down
12 changes: 4 additions & 8 deletions rcloneExplorer/rcloneExplorer.Core.Initialization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ public void initRcloneSettings()
//config found, checking for settings
if (string.IsNullOrEmpty(iniSettings.Read("rcloneRemote")))
{
MessageBox.Show("ERR: Incorrect config\r\n\r\nPlease add an rclone remote Name to the config ini");
Process.Start("cmd.exe", "/c rclone config");
Process.Start("notepad.exe", "rcloneExplorer.ini");
Environment.Exit(0);
MessageBox.Show("ERR: Incorrect config\r\n\r\nLoading config, this may take a minute...");
rcloneExplorer.initialSetup = true;
}
else
{
Expand All @@ -57,10 +55,8 @@ public void initRcloneSettings()
iniSettings.Write("rcloneSyncBandwidthLimit", "0");
iniSettings.Write("rcloneSyncMinFileSize", "0");
iniSettings.Write("rcloneSyncMaxFileSize", "0");
MessageBox.Show("No ini file found!\r\n\r\nPlease add an rclone remote Name to the config ini");
Process.Start("cmd.exe", "/c rclone config");
Process.Start("notepad.exe", "rcloneExplorer.ini");
Environment.Exit(0);
MessageBox.Show("ERR: No ini file found!\r\n\r\nLoading config, this may take a minute...");
rcloneExplorer.initialSetup = true;
}
if (System.IO.File.Exists(AppDomain.CurrentDomain.BaseDirectory + "\\ffplay.exe"))
{
Expand Down
7 changes: 7 additions & 0 deletions rcloneExplorer/rcloneExplorer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public partial class rcloneExplorer : Form
public static string remoteCD = "";
public static long totalFilesize = 0;
public static bool loaded = false;
public static bool initialSetup = false;
public static bool streamingEnabled = false;
public static System.Windows.Forms.Timer transferTimer = new System.Windows.Forms.Timer();

Expand All @@ -45,6 +46,12 @@ public rcloneExplorer()
tickHandler.init();
//init rclone settings
InitializationHandler.initRcloneSettings();
//wait for initial setup to complete if need be
if (initialSetup) {
var SetupWiz = new rcloneExplorerSetupWiz();
var waitforcomplete = SetupWiz.ShowDialog();
initialSetup = false;
}
//start the splashscreen in a background thread so the main form can work away
new Thread(() =>
{
Expand Down

0 comments on commit d999793

Please sign in to comment.