original_docstring: Non-recursively copies files from the source folder to destination folder.
docstring: Non-recursively copies files from the source folder to destination folder.
docstring_tokens: Non - recursively copies files from the source folder to destination folder .
code: def copy_files(self, from_path, to_path, paths_to_ignore):
          """Non-recursively copies files from the source folder to destination folder."""
  
          names = os.listdir(from_path)
  
          ignored_names = paths_to_ignore(from_path, names)
  
          os.makedirs(to_path)
  
          for name in names:
              if name in ignored_names:
                  continue
              srcname = os.path.join(from_path, name)
              dstname = os.path.join(to_path, name)
              if os.path.isfile(srcname):
                  copy2(srcname, dstname)
  
          copystat(from_path, to_path)
code_tokens: def copy_files ( self , from_path , to_path , paths_to_ignore ) : names = os . listdir ( from_path ) ignored_names = paths_to_ignore ( from_path , names ) os . makedirs ( to_path ) for name in names : if name in ignored_names : continue srcname = os . path . join ( from_path , name ) dstname = os . path . join ( to_path , name ) if os . path . isfile ( srcname ) : copy2 ( srcname , dstname ) copystat ( from_path , to_path )
short_docstring: Non-recursively copies files from the source folder to destination folder.
short_docstring_tokens: Non - recursively copies files from the source folder to destination folder .
comment: """Non-recursively copies files from the source folder to destination folder."""