Conditional processing of files