Completed shouldMarkFile method

fixed #4