New topic: GetFolderItem fails on ExFat drive
<http://forums.realsoftware.com/viewtopic.php?t=47486> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message ALoren Post subject: GetFolderItem fails on ExFat drivePosted: Tue Apr 02, 2013 5:09 pm Joined: Tue Nov 20, 2012 2:32 am Posts: 1 I have an OSX carbon app using the GetFolderItem command on a file located on an ExFat formatted disk drive. For whatever reason, it will not assign that location to the folder item. Can someone eyeball my code and make sure I'm not missing something stupid? Dim dirSrc as FolderItem Dim dirDest as FolderItem //code removed for clarity, you should set it to a test location. Dim i As Integer for i = 0 to listbox1.ListCount -1 //full file paths saved in listbox cell // if the cell with full file path isn't empty then getfolderitem if listbox1.Cell(i,2).Len > 0 then dirSrc = GetFolderItem(listbox1.Cell(i,2)) end if If dirSrc = Nil Then continue end if //this area may have some issues as well Dim ReadStream As BinaryStream = BinaryStream.Open(dirSrc, False) Dim writeStream As BinaryStream = BinaryStream.Create(dirDest, True) Do Until ReadStream.EOF writeStream.Write(ReadStream.Read(2048)) Loop writeStream.Close readStream.Close next Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
