文件操作 - Is.php
返回文件管理
返回主菜单
删除本文件
文件: /root/.local/share/Trash/files/roundcube/plugins/carddav/vendor/guzzlehttp/promises/src/Is.php
编辑文件内容
<?php namespace GuzzleHttp\Promise; final class Is { /** * Returns true if a promise is pending. * * @return bool */ public static function pending(PromiseInterface $promise) { return $promise->getState() === PromiseInterface::PENDING; } /** * Returns true if a promise is fulfilled or rejected. * * @return bool */ public static function settled(PromiseInterface $promise) { return $promise->getState() !== PromiseInterface::PENDING; } /** * Returns true if a promise is fulfilled. * * @return bool */ public static function fulfilled(PromiseInterface $promise) { return $promise->getState() === PromiseInterface::FULFILLED; } /** * Returns true if a promise is rejected. * * @return bool */ public static function rejected(PromiseInterface $promise) { return $promise->getState() === PromiseInterface::REJECTED; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件