original_docstring: Update the file in local filesystem storage.
      
docstring: Update the file in local filesystem storage.
docstring_tokens: Update the file in local filesystem storage .
code: def update_file(finfo, sample_info, config, pass_uptodate=False):
      """Update the file in local filesystem storage.
      """
      # skip if we have no directory to upload to
      if "dir" not in config:
          return
      if "sample" in finfo:
          storage_dir = utils.safe_makedir(os.path.join(config["dir"], finfo["sample"]))
      elif "run" in finfo:
          storage_dir = utils.safe_makedir(os.path.join(config["dir"], finfo["run"]))
      else:
          raise ValueError("Unexpected input file information: %s" % finfo)
      if finfo.get("type") == "directory":
          return copy_finfo_directory(finfo, storage_dir)
      else:
          return copy_finfo(finfo, storage_dir, pass_uptodate=pass_uptodate)
code_tokens: def update_file ( finfo , sample_info , config , pass_uptodate = False ) : if "dir" not in config : return if "sample" in finfo : storage_dir = utils . safe_makedir ( os . path . join ( config [ "dir" ] , finfo [ "sample" ] ) ) elif "run" in finfo : storage_dir = utils . safe_makedir ( os . path . join ( config [ "dir" ] , finfo [ "run" ] ) ) else : raise ValueError ( "Unexpected input file information: %s" % finfo ) if finfo . get ( "type" ) == "directory" : return copy_finfo_directory ( finfo , storage_dir ) else : return copy_finfo ( finfo , storage_dir , pass_uptodate = pass_uptodate )
short_docstring: Update the file in local filesystem storage.
short_docstring_tokens: Update the file in local filesystem storage .
comment: """Update the file in local filesystem storage.
      """$SEP$# skip if we have no directory to upload to