【发布时间】:2011-06-24 00:18:28
【问题描述】:
您好,我正在使用
上传我的图片String filePath = context.getRealPath("/")+"/Library/";
所有图片都保存在
.../workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyProj/Library/
当我列出文件时
.../workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyProj/Library/
从终端我可以看到上传的图像。但是如果我在
中列出文件.../workspace/MyProj/Library/
我看不到他们。也来自 eclipse(在项目资源管理器中)
MyProj
->Library
我看不到上传的图片。然后我认为该位置可能是一种临时位置,然后重新启动了我的计算机。但上传的图片还在
.../workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyProj/Library/
但是通过 eclipse 他们是不可见的,做 file->refresh 也没有帮助。我的问题是上传的图片会留在这个位置
.../workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyProj/Library/
为什么我不能从 Eclipse 中看到它们?如果可能的话,你能告诉我如何将它们直接保存在
.../workspace/MyProj/Library/
谢谢!
【问题讨论】:
-
这与 Java、JSP 或 servlet 有什么关系?看起来像是 Eclipse 使用问题。