original_docstring: Copy a directory into the final output directory.
      
docstring: Copy a directory into the final output directory.
docstring_tokens: Copy a directory into the final output directory .
code: def copy_finfo_directory(finfo, storage_dir):
      """Copy a directory into the final output directory.
      """
      out_dir = os.path.abspath(os.path.join(storage_dir, finfo["ext"]))
      if not shared.up_to_date(out_dir, finfo):
          logger.info("Storing directory in local filesystem: %s" % out_dir)
          if os.path.exists(out_dir):
              shutil.rmtree(out_dir)
          shutil.copytree(finfo["path"], out_dir)
          for tmpdir in ["tx", "tmp"]:
              if os.path.exists(os.path.join(out_dir, tmpdir)):
                  shutil.rmtree(os.path.join(out_dir, tmpdir))
          os.utime(out_dir, None)
      return out_dir
code_tokens: def copy_finfo_directory ( finfo , storage_dir ) : out_dir = os . path . abspath ( os . path . join ( storage_dir , finfo [ "ext" ] ) ) if not shared . up_to_date ( out_dir , finfo ) : logger . info ( "Storing directory in local filesystem: %s" % out_dir ) if os . path . exists ( out_dir ) : shutil . rmtree ( out_dir ) shutil . copytree ( finfo [ "path" ] , out_dir ) for tmpdir in [ "tx" , "tmp" ] : if os . path . exists ( os . path . join ( out_dir , tmpdir ) ) : shutil . rmtree ( os . path . join ( out_dir , tmpdir ) ) os . utime ( out_dir , None ) return out_dir
short_docstring: Copy a directory into the final output directory.
short_docstring_tokens: Copy a directory into the final output directory .
comment: """Copy a directory into the final output directory.
      """