Last active
July 2, 2020 10:39
-
-
Save PawelJazukiewicz/1cb09ba4e23378123ed3baf432986639 to your computer and use it in GitHub Desktop.
[ASDASD] asdlkajslkj #java #test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void createDirectory(String fileName) throws java.io.IOException { | |
Path path = Paths.get(fileName); | |
if (!Files.exists(path)){ | |
try { | |
Files.write(path, Collections.singleton("")); | |
} catch (IOException ex) { | |
System.out.println("Nie można zapisać pliku."); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment