kolibri/core/content/management/commands/content.py
def copy_content(self, src, dst):
        """
        Copy the content from current directory to destination directory.
        """
        if not os.path.exists(dst):
            os.makedirs(dst)
            shutil.copystat(src, dst)
        files = os.listdir(src)
        for file in files:
            src_name = os.path.join(src, file)
            dst_name = os.path.join(dst, file)

            if os.path.isdir(src_name):
                self.copy_content(src_name, dst_name)
            else:
                shutil.copy2(src_name, dst_name)

        Copy the content from current directory to destination directory.
        
Copy the content from current directory to destination directory.
Copy the content from current directory to destination directory .
def copy_content(self, src, dst):
        if not os.path.exists(dst):
            os.makedirs(dst)
            shutil.copystat(src, dst)
        files = os.listdir(src)
        for file in files:
            src_name = os.path.join(src, file)
            dst_name = os.path.join(dst, file)
            if os.path.isdir(src_name):
                self.copy_content(src_name, dst_name)
            else:
                shutil.copy2(src_name, dst_name)
def copy_content ( self , src , dst ) : if not os . path . exists ( dst ) : os . makedirs ( dst ) shutil . copystat ( src , dst ) files = os . listdir ( src ) for file in files : src_name = os . path . join ( src , file ) dst_name = os . path . join ( dst , file ) if os . path . isdir ( src_name ) : self . copy_content ( src_name , dst_name ) else : shutil . copy2 ( src_name , dst_name )
Copy the content from current directory to destination directory.
Copy the content from current directory to destination directory .
"""
        Copy the content from current directory to destination directory.
        """
self
src
dst