常规更新 v1.0.14 修正了导出功能的错误

This commit is contained in:
kohgylw 2019-02-03 08:47:06 +08:00
parent 5927c70339
commit b3400a4c41
9 changed files with 15 additions and 11 deletions

View File

@ -1,7 +1,7 @@
## 欢迎访问kiftd源代码资源库
### Welcome to visit source of kiftd!
_当前版本v1.0.13-RELEASE_
_当前版本v1.0.14-RELEASE_
### 简介
_kiftd——一款便捷、开源、功能完善的个人&团队&小型团队网盘服务器系统。_

View File

@ -80,6 +80,10 @@ kiftd项目 计划表-2018-10-9 by 青阳龙野
--------------
【已完成】优化了文件和文件夹的重命名逻辑——现在,无论是编辑文件夹还是重命名文件,若是用户不修改名称直接点击“修改”则也会提示修改成功。这一改动是为了令用户的操作体验更加舒适,同时也避免了修改文件夹权限时也必须修改文件夹名称的冗余操作。
已完成 v1.0.14
--------------
【已完成】修正了文件导出功能中,存在同名文件时,“覆盖”与“保留两者”选项与实际操作相反的问题。

View File

@ -4,7 +4,7 @@
<groupId>kohgylw</groupId>
<artifactId>kiftd</artifactId>
<version>1.0.13-RELEASE</version>
<version>1.0.14-RELEASE</version>
<packaging>jar</packaging>
<name>kiftd</name>

View File

@ -178,13 +178,13 @@ public class FSViewer extends KiftdDynamicWindow {
switch (JOptionPane.showConfirmDialog(window,
"该路径存在" + exi + "个同名文件或文件夹,您希望覆盖它们么?(“是”覆盖,“否”保留两者,“取消”终止导入)", "导入",
JOptionPane.YES_NO_CANCEL_OPTION)) {
case 0:
case JOptionPane.YES_OPTION:
type = FileSystemManager.COVER;
break;
case 1:
case JOptionPane.NO_OPTION:
type = FileSystemManager.BOTH;
break;
case 2:
case JOptionPane.CANCEL_OPTION:
default:
type = "CANCEL";

View File

@ -625,12 +625,12 @@ public class FileSystemManager {
if (Arrays.stream(path.listFiles()).parallel().filter((e) -> e.isFile())
.anyMatch((f) -> new String(f.getName().getBytes()).equals(node.getFileName()))) {
switch (type) {
case BOTH:
case COVER:
target = Arrays.stream(path.listFiles()).parallel().filter((e) -> e.isFile())
.filter((e) -> new String(e.getName().getBytes()).equals(node.getFileName())).findFirst()
.get();
break;
case COVER:
case BOTH:
target = new File(path, new String(FileNodeUtil.getNewNodeName(node, path).getBytes()));
target.createNewFile();
break;

View File

@ -1,6 +1,6 @@
Manifest-Version: 1.0
Implementation-Title: kiftd
Implementation-Version: 1.0.13-RELEASE
Implementation-Version: 1.0.14-RELEASE
Built-By: kohgylw
Implementation-Vendor-Id: kohgylw
Build-Jdk: 1.8.0_131

View File

@ -1,6 +1,6 @@
#Generated by Maven Integration for Eclipse
#Sun Jan 27 09:05:31 CST 2019
version=1.0.13-RELEASE
#Sun Feb 03 08:44:08 CST 2019
version=1.0.14-RELEASE
groupId=kohgylw
m2e.projectName=kiftd
m2e.projectLocation=/Users/kohgylw/program/java-workspace/kiftd

View File

@ -4,7 +4,7 @@
<groupId>kohgylw</groupId>
<artifactId>kiftd</artifactId>
<version>1.0.13-RELEASE</version>
<version>1.0.14-RELEASE</version>
<packaging>jar</packaging>
<name>kiftd</name>