In class FileInfo added constants TYPE_DIRECTORY and TYPE_FILE, in the
method control adds the ability to specify the type.