Taufik Pirjade

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jun 9, 2016 07:22
lolz
 

 Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
Jan 2, 2016 14:10
OP:- Failed to create directory!
Jan 2, 2016 14:09
?
Jan 2, 2016 14:09
will u guys help me
Jan 2, 2016 14:09
Hello i am facing some issue while creating dir in linux using java program
 

Trash can

Like the recycle bin, but trashier.
Jan 2, 2016 14:10
File file = new File(absoluteDiskPath);
if (!file.exists()) {
if (file.mkdir()) {
System.out.println("Directory is created!");
try {
writeText(textcontent, textFileName, eventDate, eventCat, absoluteDiskPath+"\\"+eventCat+"\\"+eventName);
writeImage(imagecontent, imageFileName, eventDate, eventCat, absoluteDiskPath+"\\"+eventCat+"\\"+eventName);
imagecontent.close();
textcontent.close();
UplodedData.flush();
} catch (IOException e) {
e.printStackTrace();
return false;
}
return true;
} else {
System.out.println("Failed to create directory!");