suspect101 / iphonebrowser

Automatically exported from code.google.com/p/iphonebrowser
0 stars 0 forks source link

Path does not exist error #215

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Connect iPod Touch
2. Run application that tries to get directories
3. Application reports - directory does not exist

int res = MobileDevice.AFCDirectoryOpen(hAFC, full_path, ref hAFCDir);
if (res != 0)
  {
    throw new Exception("Path does not exist: " + res.ToString());
}

Here is the code I am using to get directory names....

I know the directory exists, because i can get the list of files using the 
second part of the code....

sDirectories = phone.GetDirectories("/var/mobile/Applications");
if (sDirectories.Length > 0)
{
  foreach (string dname in sDirectories)
  {
    workingName = dname;
  }
}

sFiles = 
phone.GetFiles("/var/mobile/Applications/FBE35762-6CC2-4DC4-AF2F-5AD3C6F14E41");
if (sFiles.Length > 0)
{
  foreach (string fname in sFiles)
  {
    workingName = fname;
  }
}

Any help would be appreciated.

Thanks
tony

Original issue reported on code.google.com by pithhel...@gmail.com on 2 Sep 2010 at 2:52

GoogleCodeExporter commented 8 years ago
what is the value of full_path?

Original comment by NetMage....@gmail.com on 12 Nov 2010 at 8:52