From ee02872467b03dbf8fd81238da06fe22b28d0585 Mon Sep 17 00:00:00 2001 From: hankinsoft Date: Tue, 16 Dec 2014 11:46:42 -0400 Subject: [PATCH] Fixed an issue with GetFiles Fixed an issue where GetFiles was always checking if the specific target was a directory rather than the actual directory. --- MobileDevice/iPhone.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MobileDevice/iPhone.cs b/MobileDevice/iPhone.cs index 0cde831..ffaca1b 100644 --- a/MobileDevice/iPhone.cs +++ b/MobileDevice/iPhone.cs @@ -353,7 +353,7 @@ public unsafe string[] GetFiles(string path) MobileDevice.AFCDirectoryRead(hAFC, dir, ref buffer); while (buffer != null) { - if (!IsDirectory(path)) + if (!IsDirectory(string.Format("{0}/{1}", path, buffer))) { list.Add(buffer); }