- if (!($realpath = realpath($file))) {
- $this->cmd->error("File %s does not exist\n", $file);
+ /* there may be symlinks, so no realpath here */
+ if (!file_exists("$path/$file")) {
+ $this->cmd->warn("File %s does not exist in %s\n", $file, $path);