1
0

refactor: change the windows path to the linux path

This commit is contained in:
gin
2026-05-13 18:08:21 +08:00
parent ee99c23294
commit 2196246d9a
3 changed files with 11 additions and 14 deletions
@@ -110,10 +110,10 @@ class FileUploadUtilsTest {
@Test
void getFileAbsolutePath() {
AgileBootConfig agileBootConfig = new AgileBootConfig();
agileBootConfig.setFileBaseDir("D:\\agileboot");
agileBootConfig.setFileBaseDir("/home/agileboot");
String fileAbsolutePath = FileUploadUtils.getFileAbsolutePath(UploadSubDir.AVATAR_PATH, "test.jpg");
Assertions.assertEquals("D:\\agileboot\\profile\\avatar\\test.jpg", fileAbsolutePath);
Assertions.assertEquals("/home/agileboot/profile/avatar/test.jpg", fileAbsolutePath);
}
}