wrong usage of fs isFile"