Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect server directories without storing the directory name #44

Open
ChristianKernDev opened this issue Jan 6, 2022 · 0 comments
Open

Comments

@ChristianKernDev
Copy link
Member

Currently Fork accesses a servers directory by expecting the name of the directory to be the name of the server. This means, that renaming a server breaks Fork.

Solution:
Introduce a fork.json which is created in each servers directory that contains the servers ID. At startup Fork scans all folders in the server directory and looks for the servers it knows.

Edge cases:

  • If a server is not found at startup notify the user
  • If a new server is found promt the user with an import
  • Check the folder before each access for the fork.json in case of a rename at runtime
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

No branches or pull requests

1 participant