cvmfs/util/posix.cc
bool MakeCacheDirectories(const string &path, const mode_t mode) {
  const string canonical_path = MakeCanonicalPath(path);

  string this_path = canonical_path + "/quarantaine";
  if (!MkdirDeep(this_path, mode, false)) return false;

  this_path = canonical_path + "/ff";

  platform_stat64 stat_info;
  if (platform_stat(this_path.c_str(), &stat_info) != 0) {
    this_path = canonical_path + "/txn";
    if (!MkdirDeep(this_path, mode, false))
      return false;
    for (int i = 0; i <= 0xff; i++) {
      char hex[3];
      snprintf(hex, sizeof(hex), "%02x", i);
      this_path = canonical_path + "/" + string(hex);
      if (!MkdirDeep(this_path, mode, false))
        return false;
    }
  }
  return true;
}
/**
 * Creates the "hash cache" directory structure in path.
 */
Creates the "hash cache" directory structure in path.
Creates the " hash cache " directory structure in path .
bool MakeCacheDirectories(const string &path, const mode_t mode) {
  const string canonical_path = MakeCanonicalPath(path);
  string this_path = canonical_path + "/quarantaine";
  if (!MkdirDeep(this_path, mode, false)) return false;
  this_path = canonical_path + "/ff";
  platform_stat64 stat_info;
  if (platform_stat(this_path.c_str(), &stat_info) != 0) {
    this_path = canonical_path + "/txn";
    if (!MkdirDeep(this_path, mode, false))
      return false;
    for (int i = 0; i <= 0xff; i++) {
      char hex[3];
      snprintf(hex, sizeof(hex), "%02x", i);
      this_path = canonical_path + "/" + string(hex);
      if (!MkdirDeep(this_path, mode, false))
        return false;
    }
  }
  return true;
}
bool MakeCacheDirectories ( const string & path , const mode_t mode ) { const string canonical_path = MakeCanonicalPath ( path ) ; string this_path = canonical_path + " " ; if ( ! MkdirDeep ( this_path , mode , false ) ) return false ; this_path = canonical_path + " " ; platform_stat64 stat_info ; if ( platform_stat ( this_path . c_str ( ) , & stat_info ) != 0 ) { this_path = canonical_path + " " ; if ( ! MkdirDeep ( this_path , mode , false ) ) return false ; for ( int i = 0 ; i <= 0xff ; i ++ ) { char hex [ 3 ] ; snprintf ( hex , sizeof ( hex ) , " " , i ) ; this_path = canonical_path + " " + string ( hex ) ; if ( ! MkdirDeep ( this_path , mode , false ) ) return false ; } } return true ; }
Creates the "hash cache" directory structure in path.
Creates the " hash cache " directory structure in path .