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

    Snapin Pack: Unzipping Empty Folders

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    6
    556
    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.

        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.

          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.

            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 test and report back! I won’t add this change to the official code otherwise.

              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 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.

                  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

                  144

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project