����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Dropbox;
/**
* Describes how a file should be saved when it is written to Dropbox.
*/
final class WriteMode
{
/**
* The URL parameters to pass to the file uploading endpoint to achieve the
* desired write mode.
*
* @var array
*/
private $extraParams;
/**
* @internal
*/
private function __construct($extraParams)
{
$this->extraParams = $extraParams;
}
/**
* @internal
*/
function getExtraParams()
{
return $this->extraParams;
}
/**
* Returns a {@link WriteMode} for adding a new file. If a file at the specified path already
* exists, the new file will be renamed automatically.
*
* For example, if you're trying to upload a file to "/Notes/Groceries.txt", but there's
* already a file there, your file will be written to "/Notes/Groceries (1).txt".
*
* You can determine whether your file was renamed by checking the "path" field of the
* metadata object returned by the API call.
*
* @return WriteMode
*/
static function add()
{
if (self::$addInstance === null) {
self::$addInstance = new WriteMode(array("overwrite" => "false"));
}
return self::$addInstance;
}
private static $addInstance = null;
/**
* Returns a {@link WriteMode} for forcing a file to be at a certain path. If there's already
* a file at that path, the existing file will be overwritten. If there's a folder at that
* path, however, it will not be overwritten and the API call will fail.
*
* @return WriteMode
*/
static function force()
{
if (self::$forceInstance === null) {
self::$forceInstance = new WriteMode(array("overwrite" => "true"));
}
return self::$forceInstance;
}
private static $forceInstance = null;
/**
* Returns a {@link WriteMode} for updating an existing file. This is useful for when you
* have downloaded a file, made modifications, and want to save your modifications back to
* Dropbox. You need to specify the revision of the copy of the file you downloaded (it's
* the "rev" parameter of the file's metadata object).
*
* If, when you attempt to save, the revision of the file currently on Dropbox matches
* $revToReplace, the file on Dropbox will be overwritten with the new contents you provide.
*
* If the revision of the file currently on Dropbox doesn't match $revToReplace, Dropbox will
* create a new file and save your contents to that file. For example, if the original file
* path is "/Notes/Groceries.txt", the new file's path might be
* "/Notes/Groceries (conflicted copy).txt".
*
* You can determine whether your file was renamed by checking the "path" field of the
* metadata object returned by the API call.
*
* @param string $revToReplace
* @return WriteMode
*/
static function update($revToReplace)
{
return new WriteMode(array("parent_rev" => $revToReplace));
}
/**
* Check that a function argument is of type <code>WriteMode</code>.
*
* @internal
*/
static function checkArg($argName, $argValue)
{
if (!($argValue instanceof self)) Checker::throwError($argName, $argValue, __CLASS__);
}
/**
* Check that a function argument is either <code>null</code> or of type
* <code>WriteMode</code>.
*
* @internal
*/
static function checkArgOrNull($argName, $argValue)
{
if ($argValue === null) return;
if (!($argValue instanceof self)) Checker::throwError($argName, $argValue, __CLASS__);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Exception | Folder | 0755 |
|
|
| WebAuthException | Folder | 0755 |
|
|
| certs | Folder | 0755 |
|
|
| AppInfo.php | File | 7.07 KB | 0644 |
|
| AppInfoLoadException.php | File | 326 B | 0644 |
|
| ArrayEntryStore.php | File | 1.13 KB | 0644 |
|
| AuthBase.php | File | 2.52 KB | 0644 |
|
| AuthInfo.php | File | 2.64 KB | 0644 |
|
| AuthInfoLoadException.php | File | 328 B | 0644 |
|
| Checker.php | File | 3.22 KB | 0644 |
|
| Client.php | File | 59.93 KB | 0644 |
|
| Curl.php | File | 4 KB | 0644 |
|
| CurlStreamRelay.php | File | 1.04 KB | 0644 |
|
| DeserializeException.php | File | 389 B | 0644 |
|
| DropboxMetadataHeaderCatcher.php | File | 1.93 KB | 0644 |
|
| Exception.php | File | 265 B | 0644 |
|
| Host.php | File | 2.65 KB | 0644 |
|
| HttpResponse.php | File | 246 B | 0644 |
|
| OAuth1AccessToken.php | File | 1.44 KB | 0644 |
|
| OAuth1Upgrader.php | File | 5.26 KB | 0644 |
|
| Path.php | File | 5.36 KB | 0644 |
|
| RequestUtil.php | File | 11.34 KB | 0644 |
|
| RootCertificates.php | File | 4.89 KB | 0644 |
|
| SSLTester.php | File | 4.74 KB | 0644 |
|
| Security.php | File | 2.08 KB | 0644 |
|
| StreamReadException.php | File | 316 B | 0644 |
|
| Util.php | File | 799 B | 0644 |
|
| ValueStore.php | File | 1.28 KB | 0644 |
|
| WebAuth.php | File | 10.23 KB | 0644 |
|
| WebAuthBase.php | File | 4.61 KB | 0644 |
|
| WebAuthNoRedirect.php | File | 2.95 KB | 0644 |
|
| WriteMode.php | File | 3.66 KB | 0644 |
|
| autoload.php | File | 844 B | 0644 |
|
| strict.php | File | 538 B | 0644 |
|