aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS/File Skimmer.vb
diff options
context:
space:
mode:
authorTheUltimateHacker <[email protected]>2015-03-16 12:19:41 -0400
committerTheUltimateHacker <[email protected]>2015-03-16 12:19:41 -0400
commitad47328090b8225dfe7c43283bfcb0ddeee506e7 (patch)
tree7a8e2f22783cb96228ac49fefc9395d9e15fe58d /ShiftOS/File Skimmer.vb
parentdbdc3f918399bc25220c93845f16d51933a9a762 (diff)
parent91604723d5c0696e82d729b486abd07aaa9fd24a (diff)
downloadshiftos-ad47328090b8225dfe7c43283bfcb0ddeee506e7.tar.gz
shiftos-ad47328090b8225dfe7c43283bfcb0ddeee506e7.tar.bz2
shiftos-ad47328090b8225dfe7c43283bfcb0ddeee506e7.zip
Merge remote-tracking branch 'origin/master'
Conflicts: ShiftOS/skins.vb
Diffstat (limited to 'ShiftOS/File Skimmer.vb')
-rw-r--r--ShiftOS/File Skimmer.vb32
1 files changed, 22 insertions, 10 deletions
diff --git a/ShiftOS/File Skimmer.vb b/ShiftOS/File Skimmer.vb
index 9d242cc..0cc9085 100644
--- a/ShiftOS/File Skimmer.vb
+++ b/ShiftOS/File Skimmer.vb
@@ -589,16 +589,28 @@ Public Class File_Skimmer
infobox.textinfo = "Unable to move into a higher directory due to error reading the requested folder on the drive." & Environment.NewLine & Environment.NewLine & "You can only enter directories formatted in the ShiftOS file system (ShiftFS)"
infobox.Show()
Else
- Dim endloop As Boolean = False
- lbllocation.Text = lbllocation.Text.Substring(0, lbllocation.Text.Length - 1)
-
- While endloop = False
- If lbllocation.Text.Substring(lbllocation.Text.Length - 1) = "/" Then
- endloop = True
- Else
- lbllocation.Text = lbllocation.Text.Substring(0, lbllocation.Text.Length - 1)
- End If
- End While
+ Dim directoryInfo As System.IO.DirectoryInfo
+ directoryInfo = System.IO.Directory.GetParent(lbllocation.Text)
+ If (directoryInfo.FullName = "C:\") Then Dim errerror As String = "an error" Else lbllocation.Text = directoryInfo.FullName
+
+ 'Dim endloop As Boolean = False
+ 'lbllocation.Text = lbllocation.Text.Substring(0, lbllocation.Text.Length - 1)
+
+ 'While endloop = False
+ ' Try
+ ' If lbllocation.Text.Substring(lbllocation.Text.Length - 1) = "/" Then
+ ' endloop = True
+ ' Else
+ ' lbllocation.Text = lbllocation.Text.Substring(0, lbllocation.Text.Length - 1)
+ ' End If
+ ' Catch
+ ' infobox.title = "File Skimmer - Error!"
+ ' infobox.textinfo = "Unable to move into a higher directory due to error reading the requested folder on the drive." & Environment.NewLine & Environment.NewLine & "An error occured going up"
+ ' infobox.Show()
+ ' End Try
+ 'End While
+
+
showcontents()
End If
Else