+
+ /**
+ * Check if a file or directory exists.
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $file Path to file/directory.
+ * @return bool Whether $file exists or not.
+ */
+ public function exists( $file ) {
+ return false;
+ }
+
+ /**
+ * Check if resource is a file.
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $file File path.
+ * @return bool Whether $file is a file.
+ */
+ public function is_file( $file ) {
+ return false;
+ }
+
+ /**
+ * Check if resource is a directory.
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $path Directory path.
+ * @return bool Whether $path is a directory.
+ */
+ public function is_dir( $path ) {
+ return false;
+ }
+
+ /**
+ * Check if a file is readable.
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $file Path to file.
+ * @return bool Whether $file is readable.
+ */
+ public function is_readable( $file ) {
+ return false;
+ }
+
+ /**
+ * Check if a file or directory is writable.
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $file Path to file.
+ * @return bool Whether $file is writable.
+ */
+ public function is_writable( $file ) {
+ return false;
+ }
+
+ /**
+ * Gets the file's last access time.
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $file Path to file.
+ * @return int|bool Unix timestamp representing last access time.
+ */
+ public function atime( $file ) {
+ return false;
+ }
+
+ /**
+ * Gets the file modification time.
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $file Path to file.
+ * @return int|bool Unix timestamp representing modification time.
+ */
+ public function mtime( $file ) {
+ return false;
+ }
+
+ /**
+ * Gets the file size (in bytes).
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $file Path to file.
+ * @return int|bool Size of the file in bytes.
+ */
+ public function size( $file ) {
+ return false;
+ }
+
+ /**
+ * Set the access and modification times of a file.
+ *
+ * Note: If $file doesn't exist, it will be created.
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $file Path to file.
+ * @param int $time Optional. Modified time to set for file.
+ * Default 0.
+ * @param int $atime Optional. Access time to set for file.
+ * Default 0.
+ * @return bool Whether operation was successful or not.
+ */
+ public function touch( $file, $time = 0, $atime = 0 ) {
+ return false;
+ }
+
+ /**
+ * Create a directory.
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $path Path for new directory.
+ * @param mixed $chmod Optional. The permissions as octal number, (or False to skip chmod)
+ * Default false.
+ * @param mixed $chown Optional. A user name or number (or False to skip chown)
+ * Default false.
+ * @param mixed $chgrp Optional. A group name or number (or False to skip chgrp).
+ * Default false.
+ * @return bool False if directory cannot be created, true otherwise.
+ */
+ public function mkdir( $path, $chmod = false, $chown = false, $chgrp = false ) {
+ return false;
+ }
+
+ /**
+ * Delete a directory.
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $path Path to directory.
+ * @param bool $recursive Optional. Whether to recursively remove files/directories.
+ * Default false.
+ * @return bool Whether directory is deleted successfully or not.
+ */
+ public function rmdir( $path, $recursive = false ) {
+ return false;
+ }
+
+ /**
+ * Get details for files in a directory or a specific file.
+ *
+ * @access public
+ * @since 2.5.0
+ * @abstract
+ *
+ * @param string $path Path to directory or file.
+ * @param bool $include_hidden Optional. Whether to include details of hidden ("." prefixed) files.
+ * Default true.
+ * @param bool $recursive Optional. Whether to recursively include file details in nested directories.
+ * Default false.
+ * @return array|bool {
+ * Array of files. False if unable to list directory contents.
+ *
+ * @type string $name Name of the file/directory.
+ * @type string $perms *nix representation of permissions.
+ * @type int $permsn Octal representation of permissions.
+ * @type string $owner Owner name or ID.
+ * @type int $size Size of file in bytes.
+ * @type int $lastmodunix Last modified unix timestamp.
+ * @type mixed $lastmod Last modified month (3 letter) and day (without leading 0).
+ * @type int $time Last modified time.
+ * @type string $type Type of resource. 'f' for file, 'd' for directory.
+ * @type mixed $files If a directory and $recursive is true, contains another array of files.
+ * }
+ */
+ public function dirlist( $path, $include_hidden = true, $recursive = false ) {
+ return false;
+ }
+
+} // WP_Filesystem_Base