我现在有 def _atomic_copyfile(src, dst, overwrite):
with tempfile.NamedTemporaryFile(dir=os.path.dirname(dst),
delete=False) as tmp_h:
with open(src, 'rb') as src_fd:
shutil
我想将.pdf文件和.jpg文件移动到特定文件夹,然后将特定位置路径保存到数据库。到目前为止,在谷歌的帮助下,我可以将文件复制到新位置(不移动),并将新路径保存到数据库,如下面的代码集所示。 try {
JFileChooser choose = new JFileChooser();
choose.showOpenDialog(null);
File f = cho