Skip to content

Commit

Permalink
If file starts with a / it is absolute, existing check was always true
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Oct 18, 2017
1 parent 9865755 commit a0d5b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipelines/canu/Defaults.pm
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ sub addSequenceFile ($$@) {

return(undef) if (!defined($file)); # No file name? Nothing to do.
$file = "$dir/$file" if (defined($dir)); # If $dir defined, assume file is in there.
return($file) if ($file =~ m!/!); # If already a full path, use that.
return($file) if (substr($file, 0, 1) eq "/"); # If already a full path, use that.
return(abs_path($file)) if (-e $file); # If found, return the full path.

# And if not found, report an error, unless told not to. This is because on the command
Expand Down

0 comments on commit a0d5b44

Please sign in to comment.