I want to create a folder that starts with .
character. I tried File(path).mkdir()
but does not work. I cannot create from "right click->new folder". Windows blocks creating folders starting with dot character. From command prompt I can easily create via mkdir [folder_name]
. Do I have any mistakes here. If not how can I execute this command in java or any other suggestion will be helpful?
Note: Process p = Runtime.getRuntime().exec("mkdir .test"); //Does not work
Note2: My code will be platform dependent.