We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5166931 commit e157454Copy full SHA for e157454
src/subset.rs
@@ -24,8 +24,8 @@ pub fn subset_matrix(
24
let is_directory = input.as_ref().map_or(false, |path| Path::new(path).is_dir());
25
26
if rownames || colnames {
27
- if is_directory {
28
- return Err("Input must be a file when using names".into());
+ if !is_directory {
+ return Err("Input must be a directory when using names".into());
29
}
30
31
0 commit comments