HEX
Server: Apache
System: Linux flamboyant-gauss.194-164-62-186.plesk.page 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: gamesamphora (10001)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/amphoragames.com/httpdocs/wp-content/plugins/backwpup/src/Adapters/FileAdapter.php
<?php

namespace WPMedia\BackWPup\Adapters;

class FileAdapter {

	/**
	 * Check is folder readable and exists create it if not
	 * add .htaccess or index.html file in folder to prevent directory listing.
	 *
	 * @param string $folder      the folder to check.
	 * @param bool   $donotbackup Create a file that the folder will not backuped.
	 *
	 * @return string with error message if one
	 */
	public function check_folder( string $folder, bool $donotbackup = false ): string {
		return \BackWPup_File::check_folder( $folder, $donotbackup );
	}

	/**
	 * Get an absolute path if it is relative.
	 *
	 * @param string $path
	 *
	 * @return string
	 */
	public function get_absolute_path( $path = '/' ) {
		return \BackWPup_File::get_absolute_path( $path );
	}
}