我在使用shutil.copy2号文件方法。在
运行此代码后引发错误:
source_dir = r'G:\Ma Musique'
dest_dir = r'H:\All my music'
def copy_all_files(source_dir,destination_dir):
for root, subdirs, files in os.walk(source_dir):
for file in files:
path = os.path.join(root, file)
shutil.copy2(path, destination_dir)
copy_all_files(source_dir,dest_dir)
^{2}$
问题是当我对相册小.jpg我在我的来源地或目的地都找不到它目录。所以我甚至不能检查这个文件有什么权限。。。在
更精确:
我正在尝试将.mp3文件复制到这个音频文件中,但如何找到它并修改它的权限?在
我使用Windows7,Python3.7,从记事本++启动Python脚本
编辑:我把操作系统从windows7改成了Ubuntu。在
目前没有回答
相关问题 更多 >
编程相关推荐