makefile if file exists code example
Example 1: java check if file exists
import java.io.File;
File tmpDir = new File("/var/tmp");
boolean exists = tmpDir.exists();
Example 2: if file exist
file_exists ( string $filename ) : bool
import java.io.File;
File tmpDir = new File("/var/tmp");
boolean exists = tmpDir.exists();
file_exists ( string $filename ) : bool