Skip to content

fixed directory separator character - #6

Open
morfie78 wants to merge 1 commit into
NanoDankster:masterfrom
morfie78:master
Open

fixed directory separator character#6
morfie78 wants to merge 1 commit into
NanoDankster:masterfrom
morfie78:master

Conversation

@morfie78

Copy link
Copy Markdown

To fix issue #5 , I changed the hard-coded slash in the file path for the config.yml to use java.io.File.separator instead.

@JRoy

JRoy commented Jul 26, 2019

Copy link
Copy Markdown

Why not just replace File file = new File(getDataFolder() + File.separator + "config.yml"); with File file = new File(getDataFolder(), "config.yml");

@morfie78

Copy link
Copy Markdown
Author

I can only imagine that the original code of '\' inside the string with the file name was there because getDataFolder() wasn't returning the ending slash, hence the File.separator. Try it out locally and test. If this is the case, great. If not, I can update my pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants