Summery Summery
Creates a directory.
Syntax Syntax
Parameters Parameters
- $path
-
(Required) Path for new directory.
- $chmod
-
(Optional) The permissions as octal number (or false to skip chmod).
Default value: false
- $chown
-
(Optional) A user name or number (or false to skip chown).
Default value: false
- $chgrp
-
(Optional) A group name or number (or false to skip chgrp).
Default value: false
Return Return
(bool) True on success, false on failure.
Source Source
File: wp-admin/includes/class-wp-filesystem-direct.php
* * @since 2.5.0 * * @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 True on success, false on failure. */ public function touch( $file, $time = 0, $atime = 0 ) { if ( 0 == $time ) { $time = time(); } if ( 0 == $atime ) { $atime = time(); } return touch( $file, $time, $atime ); } /**
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |