SocketAPI: Add another API call for stat of file and folder separately.