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

Bug: 文件夹符号链接处理不正确 #5

Open
ShenHongFei opened this issue Jan 6, 2019 · 2 comments
Open

Bug: 文件夹符号链接处理不正确 #5

ShenHongFei opened this issue Jan 6, 2019 · 2 comments

Comments

@ShenHongFei
Copy link

图中的 ACGN 文件是指向另一个文件夹的符号链接,但是和普通的文件夹显示不同,预期的行为应该是像文件夹一样显示。
image

打开后跳转到了另一个简陋的目录页,如下图所示
image

我调试了一下后发现对于 /files?filepath=xxx 这个 API ,
后端返回的 JSON 对象的 files 属性中对于文件夹的符号链接没有做出正确的判断
image

我对那个 chfs.js 做了以上这样一个临时的 workaround ,然后那个文件夹的符号链接就能够按照文件夹的方式打开,并正常显示里面的文件了。
$.ajax(settings)
.done(function(data) {
data.files.forEach((file)=>{
if(file.name==='ACGN'){
file.dir = true
file.icon = 'asset/icons/folder.ico'
}
})

image

@ShenHongFei ShenHongFei changed the title 文件夹符号链接处理不正确 Bug: 文件夹符号链接处理不正确 Jan 6, 2019
@docblue
Copy link
Owner

docblue commented Jan 6, 2019

请问1.8版本有没有这个问题?你用的什么系统

@ShenHongFei
Copy link
Author

Windows 10
image

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

2 participants