Skip to content

Commit

Permalink
Replace hard-coded slash with File.separator
Browse files Browse the repository at this point in the history
  • Loading branch information
bean5 committed Jul 16, 2021
1 parent 574a2b5 commit edc0e25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void debugFileSetup() {
errorDisplay = "denied WRITE_EXTERNAL_STORAGE Permission !!!";
} else if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()) == false) errorDisplay = "Error in mouting external storage !!!";
else {
File path = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + Environment.DIRECTORY_DOWNLOADS + "/cs108Java");
File path = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + Environment.DIRECTORY_DOWNLOADS + File.separator + "cs108Java");
if (path.exists() == false) path.mkdirs();
if (path.exists() == false) errorDisplay = "Error in making directory !!!";
else {
Expand Down

0 comments on commit edc0e25

Please sign in to comment.