Skip to content

Commit

Permalink
Hopefully working this time.
Browse files Browse the repository at this point in the history
  • Loading branch information
stela2502 committed Dec 9, 2024
1 parent 6968559 commit 0e53e2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/singlecelldata/singlecelldata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ impl SingleCellData{
}

if ! rs {
match fs::create_dir ( file_path.clone() ){
match fs::create_dir_all ( file_path.clone() ){
Ok(_file) => (),
Err(err) => {
eprintln!("Error?: {err:#?}");
Expand All @@ -294,7 +294,7 @@ impl SingleCellData{

if fs::remove_file(file_path.join("matrix.mtx.gz") ).is_ok(){};

let file = match fs::create_dir_all( file_path.join("matrix.mtx.gz") ){
let file = match File::create( file_path.join("matrix.mtx.gz") ){
Ok(file) => file,
Err(err) => {
panic!("Error creating the path?: {err:#?}");
Expand All @@ -310,7 +310,7 @@ impl SingleCellData{
//}
if fs::remove_file(file_path.join("barcodes.tsv.gz") ).is_ok(){};

let file_b = match fs::create_dir_all( file_path.join("barcodes.tsv.gz") ){
let file_b = match File::create( file_path.join("barcodes.tsv.gz") ){
Ok(file) => file,
Err(err) => {
panic!("Error creating the path?: {err:#?}");
Expand Down

0 comments on commit 0e53e2d

Please sign in to comment.