cvmfs/sync_mediator.cc
void SyncMediator::Add(const SyncItem &entry) {
  if (entry.IsDirectory()) {
    AddDirectoryRecursively(entry);
    return;
  }

  if (entry.IsRegularFile() || entry.IsSymlink()) {
    // A file is a hard link if the link count is greater than 1
    if (entry.HasHardlinks())
      InsertHardlink(entry);
    else
      AddFile(entry);
    return;
  } else if (entry.IsGraftMarker()) {
    LogCvmfs(kLogPublish, kLogDebug, "Ignoring graft marker file.");
    return;  // Ignore markers.
  }

  PrintWarning("'" + entry.GetRelativePath() + "' cannot be added. "
               "Unrecognized file type.");
}
/**
 * Add an entry to the repository.
 * Added directories will be traversed in order to add the complete subtree.
 */
Add an entry to the repository.
Added directories will be traversed in order to add the complete subtree.
Add an entry to the repository . Added directories will be traversed in order to add the complete subtree .
void SyncMediator::Add(const SyncItem &entry) {
  if (entry.IsDirectory()) {
    AddDirectoryRecursively(entry);
    return;
  }
  if (entry.IsRegularFile() || entry.IsSymlink()) {
    if (entry.HasHardlinks())
      InsertHardlink(entry);
    else
      AddFile(entry);
    return;
  } else if (entry.IsGraftMarker()) {
    LogCvmfs(kLogPublish, kLogDebug, "Ignoring graft marker file.");
    return;  
  }
  PrintWarning("'" + entry.GetRelativePath() + "' cannot be added. "
               "Unrecognized file type.");
}
void SyncMediator :: Add ( const SyncItem & entry ) { if ( entry . IsDirectory ( ) ) { AddDirectoryRecursively ( entry ) ; return ; } if ( entry . IsRegularFile ( ) || entry . IsSymlink ( ) ) { if ( entry . HasHardlinks ( ) ) InsertHardlink ( entry ) ; else AddFile ( entry ) ; return ; } else if ( entry . IsGraftMarker ( ) ) { LogCvmfs ( kLogPublish , kLogDebug , " " ) ; return ; } PrintWarning ( " " + entry . GetRelativePath ( ) + " " " " ) ; }
Add an entry to the repository.
Add an entry to the repository .
// A file is a hard link if the link count is greater than 1 // Ignore markers.