FOG Project

    • Register
    • Login
    • Search
    • Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Solved Snapin Pack: Unzipping Empty Folders

    FOG Problems
    2
    6
    95
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      markbam last edited by

      I have a snapin pack that contains a template for a directory structure; this template includes a bunch of empty folders.
      During the unzipping process FOG will not create any of these empty folders; only the folders that have files actually inside them. Is this by design?

      Thanks

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator last edited by

        @markbam Please download the updated Modules file including the fix mentioned below. Stop the FOGService in Windows Services console, rename C:\Program Files (x86)\FOG\Modules.dll and place the downloaded file as new Modules.dll in that same directory. Now start FOGService again or reboot the PC and see if your SnapinPack works as expected.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator last edited by

          @markbam Thanks for testing und letting us know! I will add this to the official code und it will be in the new fog-client releases from then on. But I won’t update the official 0.11.16 version. Feel free to use that DLL provided.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • M
            markbam last edited by

            Thanks, I can confirm that this updated Module addresses my problem. The empty directories are now unzipping as expected.

            (Sorry for the late reply, my server’s RAID bombed)

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator last edited by

              @markbam Please test and report back! I won’t add this change to the official code otherwise.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator last edited by

                @markbam Please download the updated Modules file including the fix mentioned below. Stop the FOGService in Windows Services console, rename C:\Program Files (x86)\FOG\Modules.dll and place the downloaded file as new Modules.dll in that same directory. Now start FOGService again or reboot the PC and see if your SnapinPack works as expected.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator last edited by

                  @markbam Seems like we don’t extract empty directories at the moment as it’s not the default behaviour of the ZIP library we use: https://github.com/FOGProject/fog-client/blob/master/Modules/SnapinClient/SnapinClient.cs#L155

                  I guess we could add fastzip.CreateEmptyDirectories = true; (ref)

                  Will work on adding this and provide an updated Modules.dll for you in the next days.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  183
                  Online

                  10.2k
                  Users

                  16.3k
                  Topics

                  149.9k
                  Posts

                  Copyright © 2012-2020 FOG Project