Skip to content

Commit ccff65e

Browse files
committed
fix win path format
1 parent c4cb99e commit ccff65e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/tabby/common/utils/FileUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public static void copyAll(Set<String> sources, Path target, String basePath) th
234234
for (String source : sources) {
235235
if (source.startsWith(basePath)) {
236236
String sub = source.substring(len);
237-
if (sub.startsWith("/")) {
237+
if (sub.startsWith("/") || sub.startsWith("\\")) { // fix win path format
238238
sub = sub.substring(1);
239239
}
240240
Path path = target.resolve(sub);

0 commit comments

Comments
 (0)