Skip to content

Commit dd4e9a0

Browse files
regaw-leinadregaw-leinad
authored andcommitted
Fix missing directory in arguements
1 parent 2b12ab0 commit dd4e9a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

AndroidLib/Classes/AndroidController/FileSystem.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,18 +204,18 @@ public ListingType FileOrDirectory(string location)
204204
/// E.G.: /system/bin/
205205
/// </param>
206206
/// <returns>See <see cref="Dictionary"/></returns>
207-
public Dictionary<string, ListingType> GetFilesAndDirectories(string rootDir)
207+
public Dictionary<string, ListingType> GetFilesAndDirectories(string location)
208208
{
209-
if (rootDir == null || string.IsNullOrEmpty(rootDir) || Regex.IsMatch(rootDir, @"\s"))
209+
if (location == null || string.IsNullOrEmpty(location) || Regex.IsMatch(location, @"\s"))
210210
throw new ArgumentException("rootDir must not be null or empty!");
211211

212212
Dictionary<string, ListingType> filesAndDirs = new Dictionary<string, ListingType>();
213213
AdbCommand cmd = null;
214214

215215
if (device.BusyBox.IsInstalled)
216-
cmd = Adb.FormAdbShellCommand(device, true, "busybox", "ls", "-a", "-p", "-l", rootDir);
216+
cmd = Adb.FormAdbShellCommand(device, true, "busybox", "ls", "-a", "-p", "-l", location);
217217
else
218-
cmd = Adb.FormAdbShellCommand(device, true, "ls", "-a", "-p", "-l");
218+
cmd = Adb.FormAdbShellCommand(device, true, "ls", "-a", "-p", "-l", location);
219219

220220
using (StringReader reader = new StringReader(Adb.ExecuteAdbCommand(cmd)))
221221
{

0 commit comments

Comments
 (0)