Skip to content

Commit

Permalink
Create java-function-are-here.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Tidy-Coder authored Aug 5, 2024
1 parent bdf8884 commit efca24b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions java/java-function-are-here.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import java.io.file;

public class TidyOpenFileManagementLibrary(){
public boolean exists(String tidyPath){
return (new File(tidyPath)).exists();
}
public boolean isFolder(String tidyPath){
return (new File(tidyPath)).isDirectory();
}
public boolean isFile(String tidyPath){
return (new File(tidyPath)).isFile();
}
public boolean createFolder(String tidyPath){
return (new File(tidyPath)).mkdir(tidyPath);
}
public boolean delete(String tidyPath){
return (new File(tidyPath)).delete(tidyPath);
}
public boolean createFile(String tidyPath){
return (new File(tidyPath)).createNewFile();
}
}

0 comments on commit efca24b

Please sign in to comment.