static isProfileDirectory(profileDirectoryPath) {
    const profileFilePath = path.join(profileDirectoryPath, profileFile);
    const playerCodeFilePath = path.join(profileDirectoryPath, playerCodeFile);
    try {
      return (
        fs.statSync(profileFilePath).isFile() &&
        fs.statSync(playerCodeFilePath).isFile()
      );
    } catch (err) {
      if (err.code === 'ENOENT') {
        return false;
      }

      throw err;
    }
  }
/**
   * Checks if the given path is a profile directory.
   *
   * For a directory to be considered a profile directory, it must contain two
   * files: `.profile` and `Player.js`.
   *
   * @param {string} profileDirectoryPath The path to validate.
   *
   * @returns {boolean} Whether the path is a profile directory or not.
   */
Checks if the given path is a profile directory.
For a directory to be considered a profile directory, it must contain two
files: `.profile` and `Player.js`.

@param {string} profileDirectoryPath The path to validate.

@returns {boolean} Whether the path is a profile directory or not.
Checks if the given path is a profile directory . For a directory to be considered a profile directory it must contain two files : ` . profile ` and ` Player . js ` . @param { string } profileDirectoryPath The path to validate . @returns { boolean } Whether the path is a profile directory or not .
static isProfileDirectory(profileDirectoryPath) {
    const profileFilePath = path.join(profileDirectoryPath, profileFile);
    const playerCodeFilePath = path.join(profileDirectoryPath, playerCodeFile);
    try {
      return (
        fs.statSync(profileFilePath).isFile() &&
        fs.statSync(playerCodeFilePath).isFile()
      );
    } catch (err) {
      if (err.code === 'ENOENT') {
        return false;
      }
      throw err;
    }
  }
static isProfileDirectory ( profileDirectoryPath ) { const profileFilePath = path . join ( profileDirectoryPath , profileFile ) ; const playerCodeFilePath = path . join ( profileDirectoryPath , playerCodeFile ) ; try { return ( fs . statSync ( profileFilePath ) . isFile ( ) && fs . statSync ( playerCodeFilePath ) . isFile ( ) ) ; } catch ( err ) { if ( err . code === 'ENOENT' ) { return false ; } throw err ; } }
Checks if the given path is a profile directory.
Checks if the given path is a profile directory .