Member since
12-11-2017
2
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
9069 | 12-11-2017 04:02 PM |
12-11-2017
04:02 PM
0down voteaccept
I found the mistake. While creating a directory i was using filesystem.create() to create a directory. But actually it was creating a FSDataOutputStream at the indicated Path. So i changed it to filesystem.mkdirs(targetpath) which resolved my error. Now my code works fine. Sorry for the silly mistake and wasting you time guys. <code>if(!fs.exists(target)){
fs.mkdirs(target);//I have used this ->fs.create(target);
LOGGER.info("created the path");}
... View more