This is a small explanation of what I'm doing in my project:
Start
Make dir (PBCL_FileMakeDir_1), if xDone then (1)
Make ".csv" file (my own block), if xDone then (2)
Compress dir (PBCL_FileCompression_1), if xDone then (3)
Copy ".gz" file (PBCL_FileCopyFtp_1), if xDone then (4)
Delete ".gz" file (PBCL_FileDelete_1), if xDone then (5)
End
The problem is in step 3 (function block PBCL_FileCompression_1).
When I use it with the ".csv" file it compresses it (create ".gz" file) and deletes the original (".csv"

But if I try to do it with a folder, it compresses it (create ".gz" file) without deletes the original (dir). And I have xError (no xDone) - 0xC211 Error during file compression.
Why is it happens? How to solve it?
P.S. FunctionBlock: PBCL_FileCompression_1 - A function block to compress files or directories