Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdir: cannot create directory ‘.//SCASA_My_Project_20240627144303/’: File exists #14

Open
nick-youngblut opened this issue Jun 27, 2024 · 0 comments

Comments

@nick-youngblut
Copy link

You can just change system("mkdir $file_variable") to system("mkdir -p $file_variable") in order to avoid this issue.

Also, you are not checking the exit status os system, so if the subprocess fails, the parent process will not fail. I believe that this is true for system in both perl and R. That could be very problematic for the code at

system(paste0("cp ",output_dir_chunk,"/*.fasta ",output_dir))
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant