A DESCRIPTION OF THE PROBLEM :
`Files` provides a convenient utility method for creating a new file, `Files.createFile`. However, if you need to ensure that a certain file is in place and don't mind if it already exists, you have to resort to manual checks before calling the method
```java
// for example, like so
@SneakyThrows
void createFileIfAbsent() {
Path path = Paths.get("text.txt");
if (!path.toFile().exists()) {
Files.createFile(path);
}
}
```
It would be more convenient if `Files` *itself* provided such functionality with a `createFileIfAbsent()` method
`Files` provides a convenient utility method for creating a new file, `Files.createFile`. However, if you need to ensure that a certain file is in place and don't mind if it already exists, you have to resort to manual checks before calling the method
```java
// for example, like so
@SneakyThrows
void createFileIfAbsent() {
Path path = Paths.get("text.txt");
if (!path.toFile().exists()) {
Files.createFile(path);
}
}
```
It would be more convenient if `Files` *itself* provided such functionality with a `createFileIfAbsent()` method