removing console log of aws file, only uses directories feature if the array has a length