The action GetFilesOnDirectory is missing the NetworkCredential and the try and catch.Also the output parameters are not properly named.
Fix it for Kudos
Why not use the 'Filesystem' extension that the platform provides?