Check whether the file exists in the fold command