copying files from the engine

Mark Smith Mark_Smith at cpe.umanitoba.ca
Sun Nov 4 13:04:39 EST 2012


Hi, I'm trying to copy a resource, in this case an sqlite file, from the
engine into the documents directory. I have verified that fire2.sqlite is in
the package contents for the compiled app. The following code is not working
(nothing gets copied). Can anyone see the problem?

   put specialFolderPath("engine") & "/Fire2.sqlite" into engineFilePath
   put specialFolderPath("documents") & "/Fire2.sqlite" into tDatabasePath
   if there is a file engineFilePath then
      put URL ("binfile:" & engineFilePath) into URL ("binfile:" &
tDatabasePath)
   end if

Putting an else close to print an error msg if the file in the engine is not
found results in the error msg being printed. Using a utility I wrote that
can list the contents of iOS directories I can see the fire2.sqlite file in
the "engine" directory. Not sure why this would not be working (probably
been staring at it too long!)

Thanks

-- Mark



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/copying-files-from-the-engine-tp4656920.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list