if(f == null)
throw new IllegalArgumentException("null File argument.");
else if(!f.exists())
throw new IllegalArgumentException("File doesn't exist: " + FileUtils.safeGetCanonicalPath(f));
if(f.isDirectory())
isDir = true;
else
isDir = false;
fileSource = f;