Skip to content

Commit

Permalink
Update java-function-are-here.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Tidy-Coder authored Aug 6, 2024
1 parent a081037 commit 2e68e9d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions java/java-function-are-here.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,14 @@ public boolean createFile(String tidyPath){
public long size(String tidyPath){
return (new File(tidyPath)).length();
}
public boolean clear(String tidyPath){
if(this.isFile(tidyPath)){
this.delete(tidyPath);
this.createFile(tidyPath);
}
else if(this.isFolder(tidyPath)){
this.delete(tidyPath);
this.createFolder(tidyPath);
}
}
}

0 comments on commit 2e68e9d

Please sign in to comment.