Jump to content

Can't recursively zip directory with "ZLIB Compress Directory" when password specified


Recommended Posts

There's a bug in "ZLIB Compress Directory" where it fails if a password is specified.

If you try it, it will result in a file permission error:

post-17-0-26248800-1301863262_thumb.png

I fixed this error by not passing in a password to the "ZLIB Store" for directories, and only passing in the password for files (as shown below).

post-17-0-98784900-1301863090_thumb.png

Here's the fixed VI.

ZLIB Compress Directory__ogtk -- BUGFIX.vi

Link to comment

There's a bug in "ZLIB Compress Directory" where it fails if a password is specified.

If you try it, it will result in a file permission error:

post-17-0-26248800-1301863262_thumb.png

I fixed this error by not passing in a password to the "ZLIB Store" for directories, and only passing in the password for files (as shown below).

Actually a better fix is to apply the correct logic in ZLIB Store File.vi itself, since in there is already code to detect if the entry is a file or directory. I will look into this as soon as I have finished setting up the essential tools on my new machine, since the old machine is kind of dieing, I rather don't want to use it for any work anymore.

Link to comment

Actually a better fix is to apply the correct logic in ZLIB Store File.vi itself, since in there is already code to detect if the entry is a file or directory. I will look into this as soon as I have finished setting up the essential tools on my new machine, since the old machine is kind of dieing, I rather don't want to use it for any work anymore.

That sounds like a good way to do it. Thanks for your work on this.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.