Results 1 to 6 of 6

Thread: ZLIB_Extract-Bug when unpacking zips that contain folders

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174

    ZLIB_Extract-Bug when unpacking zips that contain folders

    It creates duplicates of the folders contained in a zip-file in app_scriptpath when unpacking not to app_scriptpath.
    Creates empty folders + subfolders in app_scriptpath - as long as they contain data.
    Empty folders- even if contained in the zip- won't get created at all - not at destination nor at app_scriptpath

    I made some example and attached it- this is just the test-script, run it from the unpacked attachement which contains some example-source+destination-folder - it won't make a difference where they are located as long as destination is not app_scriptpath. Only in that case the misbehaviour of creating duplicate folders in app_scriptpath would not matter


    Uses "Console", "ZLib"
    
    String sZip_path = APP_ScriptPath & "some_subfolder\"
    
     ' some_subfolder means only NOT APP_SCRIPTPATH, 
     ' can as well create some additional folder (as "c:\test\") where to unpack 
      
    ZLib_Extract(sZip_path & "some_zip_with_folders inside.zip", sZip_path)
      
    ' we dont unpack anything to App_Scriptpath here...
      
    PrintL "check content of your current app_scriptpath now on disk: "
    PrintL APP_ScriptPath
    
    
    WaitKey
    
    Attached Files Attached Files
    Last edited by ReneMiner; 21-02-2015 at 21:54.
    I think there are missing some Forum-sections as beta-testing and support

Similar Threads

  1. What are these folders for?
    By Michael Hartlef in forum thinBasic General
    Replies: 3
    Last Post: 22-11-2009, 20:39

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •