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

fix(init): FileConfigProvider#initializeFile创建无用目录问题 #40

Closed
ManTouQAQ opened this issue Jul 23, 2023 · 7 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@ManTouQAQ
Copy link

问题简述

使用YAMLConfigProvider#initializeFile方法保存资源后如果资源带有文件夹则会创建无用文件夹

问题截图/问题报错

image
image
image
image

@ManTouQAQ ManTouQAQ added the bug Something isn't working label Jul 23, 2023
@CarmJos
Copy link
Owner

CarmJos commented Jul 25, 2023

不好意思,我没理解什么意思;换句话说,我从没这样使用过。可以详细解释一下吗?

@ManTouQAQ
Copy link
Author

不好意思,我没理解什么意思;换句话说,我从没这样使用过。可以详细解释一下吗?

umm 就是比如我期望的文件目录是configs/config.yml 而资源目录是test/config.yml 我通过saveResource方法保存资源文件时会出现这种情况

image

其中root文件夹就是程序所运行的目录,通过saveResource保存文件后会创建configs文件夹和config.yml文件 但是test文件夹是我不期望出现的文件夹,且test文件夹里无内容
image

@CarmJos
Copy link
Owner

CarmJos commented Aug 9, 2023

您好,我在 bc67de0 中尝试修复该问题,请问可以帮助我进行测试吗? 您可以添加以下依赖路径:

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

	<dependency>
	    <groupId>com.github.CarmJos.EasyConfiguration</groupId>
	    <artifactId>easyconfiguration-yaml</artifactId>
	    <version>c6cce5208f</version>
	</dependency>

希望问题能得到解决,期待您的回复。

@CarmJos
Copy link
Owner

CarmJos commented Aug 18, 2023

@ManTouQAQ

@ManTouQAQ
Copy link
Author

@ManTouQAQ

抱歉 我现在没有设备aaa 等我明天装上

@CarmJos
Copy link
Owner

CarmJos commented Aug 18, 2023

@ManTouQAQ

抱歉 我现在没有设备aaa 等我明天装上

很高兴看到您的消息,静候佳音~

@CarmJos CarmJos changed the title YAMLConfigProvider#initializeFile创建无用目录问题 fix(init): YAMLConfigProvider#initializeFile创建无用目录问题 Aug 18, 2023
@CarmJos CarmJos changed the title fix(init): YAMLConfigProvider#initializeFile创建无用目录问题 fix(init): FileConfigProvider#initializeFile创建无用目录问题 Aug 18, 2023
@CarmJos
Copy link
Owner

CarmJos commented Aug 28, 2023

您好,请问问题有解决了嘛?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants