original_docstring: Copy a file into the output storage directory.
      
docstring: Copy a file into the output storage directory.
docstring_tokens: Copy a file into the output storage directory .
code: def copy_finfo(finfo, storage_dir, pass_uptodate=False):
      """Copy a file into the output storage directory.
      """
      if "sample" in finfo:
          out_file = os.path.join(storage_dir, "%s-%s.%s" % (finfo["sample"], finfo["ext"],
                                                             finfo["type"]))
      else:
          out_file = os.path.join(storage_dir, os.path.basename(finfo["path"]))
      out_file = os.path.abspath(out_file)
      if not shared.up_to_date(out_file, finfo):
          logger.info("Storing in local filesystem: %s" % out_file)
          shutil.copy(finfo["path"], out_file)
          return out_file
      if pass_uptodate:
          return out_file
code_tokens: def copy_finfo ( finfo , storage_dir , pass_uptodate = False ) : if "sample" in finfo : out_file = os . path . join ( storage_dir , "%s-%s.%s" % ( finfo [ "sample" ] , finfo [ "ext" ] , finfo [ "type" ] ) ) else : out_file = os . path . join ( storage_dir , os . path . basename ( finfo [ "path" ] ) ) out_file = os . path . abspath ( out_file ) if not shared . up_to_date ( out_file , finfo ) : logger . info ( "Storing in local filesystem: %s" % out_file ) shutil . copy ( finfo [ "path" ] , out_file ) return out_file if pass_uptodate : return out_file
short_docstring: Copy a file into the output storage directory.
short_docstring_tokens: Copy a file into the output storage directory .
comment: """Copy a file into the output storage directory.
      """