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

Commit

Permalink
Fix navigating to parent folder when depth>1 or path contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiankidd committed Oct 13, 2016
1 parent 0f83765 commit d82c41b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified .vs/rcloneExplorer/v14/.suo
Binary file not shown.
6 changes: 3 additions & 3 deletions rcloneExplorer/rcloneExplorer.Core.ExploreHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ public void lstExplorer_MouseDoubleClick(object sender, MouseEventArgs e)
else if (storedFilesizeHuman == "<up>")
{
//seperate directories in string, rebuild array without last two, join back to string
rcloneExplorer.remoteCD = String.Join(" ", rcloneExplorer.remoteCD.Split('/').Take(rcloneExplorer.remoteCD.Split('/').Count() - 2).ToArray());
rcloneExplorer.remoteCD = String.Join("/", rcloneExplorer.remoteCD.Split('/').Take(rcloneExplorer.remoteCD.Split('/').Count() - 2).ToArray()) + "/";
//populate lstview with new directory contents
lblLoading.Visible = true;
lblLoading.Refresh();
populatelstExplorer(iniSettings.Read("rcloneRemote") + ":" + rcloneExplorer.remoteCD + "/");
populatelstExplorer(iniSettings.Read("rcloneRemote") + ":\"" + rcloneExplorer.remoteCD + "/\"");
lblLoading.Visible = false;
}
else
Expand Down Expand Up @@ -235,7 +235,7 @@ public void streamMediaToolStripMenuItem_Click(object sender, EventArgs e)
if (storedFilesizeHuman != "<dir>" && storedFilesizeHuman != "<up>")
{
//we're on the honor system for filetypes
Process.Start("cmd.exe", "/c rclone.exe cat " + iniSettings.Read("rcloneRemote") + ":\"" + storedFilepath + "\" | ffplay -");
Process.Start("cmd.exe", "/c rclone.exe cat " + iniSettings.Read("rcloneRemote") + ":\"" + storedFilepath + "\" | ffplay -window_title " + storedFilepath + " -");
}
else
{
Expand Down

0 comments on commit d82c41b

Please sign in to comment.