Unzip Files node - Output directory is not writable

I’m trying to Unzip one or multiple files but I’m getting the message that the Output directory is not writable. The location (network drive) is accessible through other nodes though like for instance List Files or Excel Writer. Also, it does work for other users with same access rights. And other network drives seem to work as well.

This is what the (start of the) workflow looks like:
image

Even when I do a simpler version of just trying to unzip it into that network drive, it doesn’t work:
image

Hello @knndcc,

you are using legacy node(s). If not for a specific reason I suggest to avoid it. For unzipping give Decompress Files node a try. If needed you can precede it with source/destination file system connection.

Br,
Ivan

5 Likes

Hi @ipazin
Thanks for your reply.
When I add the Decompress Files node instead of the Unzip Files node it somehow doesn’t let me use the variable URL (as I’m trying to decompress multiple files with a loop). Do you know why that could be?

Hello @knndcc,

that’s because you are using List Files (deprecated) node which outputs location in String data type while the new one is using Path data type which was introduced with new File Handling framework.

Here you can find out more about it:
https://docs.knime.com/latest/analytics_platform_file_handling_guide/index.html#introduction

Br,
Ivan

1 Like

Hi guys,

You can use the the “string to path node” to work with your URL variable and apply it to the file descompress node or other file manipulation node.

image

Tks,

Denis

Hi @denisfi & @ipazin
I did it with the “string to path node” as suggested by denisfi, and it worked perfectly!
Thank you both for your quick help on this.
Cheers,
KD

2 Likes