--- a/wp/wp-admin/includes/class-wp-filesystem-direct.php Tue Jun 09 11:14:17 2015 +0000
+++ b/wp/wp-admin/includes/class-wp-filesystem-direct.php Mon Oct 14 17:39:30 2019 +0200
@@ -10,15 +10,15 @@
* WordPress Filesystem Class for direct PHP file and folder manipulation.
*
* @since 2.5.0
- * @package WordPress
- * @subpackage Filesystem
- * @uses WP_Filesystem_Base Extends class
+ *
+ * @see WP_Filesystem_Base
*/
class WP_Filesystem_Direct extends WP_Filesystem_Base {
/**
* constructor
*
+ *
* @param mixed $arg ignored argument
*/
public function __construct($arg) {
@@ -29,6 +29,7 @@
/**
* Reads entire file into a string
*
+ *
* @param string $file Name of the file to read.
* @return string|bool The function returns the read data or false on failure.
*/
@@ -39,6 +40,7 @@
/**
* Reads entire file into an array
*
+ *
* @param string $file Path to the file.
* @return array|bool the file contents in an array or false on failure.
*/
@@ -49,6 +51,7 @@
/**
* Write a string to a file
*
+ *
* @param string $file Remote path to the file where to write the data.
* @param string $contents The data to write.
* @param int $mode Optional. The file permissions as octal number, usually 0644.
@@ -81,6 +84,7 @@
/**
* Gets the current working directory
*
+ *
* @return string|bool the current working directory on success, or false on failure.
*/
public function cwd() {
@@ -90,6 +94,7 @@
/**
* Change directory
*
+ *
* @param string $dir The new current directory.
* @return bool Returns true on success or false on failure.
*/
@@ -100,6 +105,7 @@
/**
* Changes file group
*
+ *
* @param string $file Path to the file.
* @param mixed $group A group name or number.
* @param bool $recursive Optional. If set True changes file group recursively. Default false.
@@ -124,6 +130,7 @@
/**
* Changes filesystem permissions
*
+ *
* @param string $file Path to the file.
* @param int $mode Optional. The permissions as octal number, usually 0644 for files,
* 0755 for dirs. Default false.
@@ -154,6 +161,7 @@
/**
* Changes file owner
*
+ *
* @param string $file Path to the file.
* @param mixed $owner A user name or number.
* @param bool $recursive Optional. If set True changes file owner recursively.
@@ -178,6 +186,7 @@
/**
* Gets file owner
*
+ *
* @param string $file Path to the file.
* @return string|bool Username of the user or false on error.
*/
@@ -196,6 +205,7 @@
*
* FIXME does not handle errors in fileperms()
*
+ *
* @param string $file Path to the file.
* @return string Mode of the file (last 3 digits).
*/
@@ -204,6 +214,7 @@
}
/**
+ *
* @param string $file
* @return string|false
*/
@@ -218,6 +229,7 @@
}
/**
+ *
* @param string $source
* @param string $destination
* @param bool $overwrite
@@ -235,6 +247,7 @@
}
/**
+ *
* @param string $source
* @param string $destination
* @param bool $overwrite
@@ -257,6 +270,7 @@
}
/**
+ *
* @param string $file
* @param bool $recursive
* @param string $type
@@ -290,6 +304,7 @@
return $retval;
}
/**
+ *
* @param string $file
* @return bool
*/
@@ -297,6 +312,7 @@
return @file_exists($file);
}
/**
+ *
* @param string $file
* @return bool
*/
@@ -304,6 +320,7 @@
return @is_file($file);
}
/**
+ *
* @param string $path
* @return bool
*/
@@ -312,6 +329,7 @@
}
/**
+ *
* @param string $file
* @return bool
*/
@@ -320,6 +338,7 @@
}
/**
+ *
* @param string $file
* @return bool
*/
@@ -328,6 +347,7 @@
}
/**
+ *
* @param string $file
* @return int
*/
@@ -336,6 +356,7 @@
}
/**
+ *
* @param string $file
* @return int
*/
@@ -344,6 +365,7 @@
}
/**
+ *
* @param string $file
* @return int
*/
@@ -352,6 +374,7 @@
}
/**
+ *
* @param string $file
* @param int $time
* @param int $atime
@@ -366,6 +389,7 @@
}
/**
+ *
* @param string $path
* @param mixed $chmod
* @param mixed $chown
@@ -392,6 +416,7 @@
}
/**
+ *
* @param string $path
* @param bool $recursive
* @return bool
@@ -401,6 +426,7 @@
}
/**
+ *
* @param string $path
* @param bool $include_hidden
* @param bool $recursive