Android Question Unpacking zip destination folder problems

Discussion in 'Android Questions' started by Ricardo Bunschoten, Jun 4, 2015.

  1. Ricardo Bunschoten

    Ricardo Bunschoten Member Licensed User

    I have a Question

    In my script it unpacks a zipfile in to Android/data/com.semperpax.spm/files/.spmc

    But if that folder already excists then it creates a identical folder com.semperpax.spm/files/.spmc with all the content of my zipfile ?

    i use this code

    Code:
    Sub dd_Complete(Job AsHttpJob)Log("Job completed: " & Job.Success)
    Dim o AsOutputStream
     o = 
    File.OpenOutput(File.dirrootExternal, "Download/Veolo4K.zip"False)
     
    File.Copy2(Job.GetInputStream, o)
     o.Close
     Arc.aSyncUnZip(
    File.DirRootExternal, "/Download/Veolo4K.zip" , File.DirRootExternal & "/Android/data/com.semperpax.spm/files/.spmc/""arc")
    Job.ReleaseEnd 
    Sub
     
    Sub btnCancel_Click
     CallSubDelayed2(DownloadService, 
    "CancelDownload", link1)End Sub

    And it works it unzips the zip to the specified folder but this folder already excists (Spmc aka XBMC is installed and created that folder with content

    So what happends is after the unzip process i have to extact the same folders one witht he content of my zip and 1 of with the content of xbmc

    How can i resolve this that the zipfile is unpacked to the Original folder ?
     
  2. Ricardo Bunschoten

    Ricardo Bunschoten Member Licensed User

    nevermind i found the problem in my esfile explorer it shows com.semperpax.spm but it is com.semperpax.spmc Duuhhhhhhhhhhh!!! :)

    This one can be closed / removed
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice