سؤال

Does anyone have an idea about copying folder and sub folders using PyQt?

هل كانت مفيدة؟

المحلول

You can do:

from shutil import copytree
copytree(original_directory_path, copy_directory_path)

For more information, check the docs on shutil.copytree here: http://docs.python.org/2/library/shutil.html#shutil.copytree

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top