@@ -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