Reputation: 57
i need to create a directory that ends with / , but when i do this it automatically deletes the / , is it possible?
String folderPath =Item.getPath()+"_Docs/");
File folder=new File(folderPath);
When i do folder.getPath i onyl get /_Docs
I'd really appreciate the help , thank you
Upvotes: 0
Views: 49
Reputation: 1007321
is it possible?
No. Similarly, you cannot create a directory that ends in /
on macOS or Linux, and you cannot create a directory that ends in \
on Windows.
Upvotes: 3