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

求助,无法扫描目录 #8

Open
r1is opened this issue May 16, 2022 · 6 comments
Open

求助,无法扫描目录 #8

r1is opened this issue May 16, 2022 · 6 comments

Comments

@r1is
Copy link

r1is commented May 16, 2022

http://127.0.0.1:8000/dir-search/

Request Method: POST
http://127.0.0.1:8000/dir-search/
3.1.4
FileNotFoundError
[Errno 2] No such file or directory: 'dirscan/dirsearch/reports/target.json'

找几遍项目里的dirsearch 文件夹,并没有发现dirsearch/reports/target.json

@j2ekim
Copy link

j2ekim commented Jul 20, 2022

http://127.0.0.1:8000/dir-search/

Request Method: POST
http://127.0.0.1:8000/dir-search/
3.1.4
FileNotFoundError
[Errno 2] No such file or directory: 'dirscan/dirsearch/reports/target.json'
找几遍项目里的dirsearch 文件夹,并没有发现dirsearch/reports/target.json

  1. Create a file "dirscan/dirsearch/reports/target.json" ;
  2. Cteate folder “dirscan/logs/”;

@Majus527
Copy link

我也是这问题 找不到那个文件

@Majus527
Copy link

我是傻逼,搞明白了。 open(, "w")函数如果文件不存在可以自动创建文件,但是需要目录存在!给的项目里没有reports和logs目录,把这两个目录手动创建就可以了,其他不用管。

@jwt1399
Copy link
Owner

jwt1399 commented Mar 15, 2023

这是一个bug,你们可以尝试自己修复,扫描完成才会生出这个文件

@InKu0721
Copy link

InKu0721 commented May 6, 2024

我创建完这几个文件后,但是在web端使用目录扫描会重置页面,并且没有任何输出,dir也没有log产生

@KatagiYuni
Copy link

添加reports和log文件夹后,能正常生成target.json,json文件里也有信息,log文件夹中也能记录错误信息,但扫描后无法显示结果。

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

6 participants