summaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/icewind/streams/src/Url.php
blob: 38cbbdd89b22d874b354dcfe4cfa5ef85db9cdcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
 * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
 * This file is licensed under the Licensed under the MIT license:
 * http://opensource.org/licenses/MIT
 */

namespace Icewind\Streams;

/**
 * Interface for stream wrappers that implement url functions such as unlink, stat
 */
interface Url {
	/**
	 * @param string $path
	 * @param array $options
	 * @return bool
	 */
	public function dir_opendir($path, $options);

	/**
	 * @param string $path
	 * @param string $mode
	 * @param int $options
	 * @param string $opened_path
	 * @return bool
	 */
	public function stream_open($path, $mode, $options, &$opened_path);

	/**
	 * @param string $path
	 * @param int $mode
	 * @param int $options
	 * @return bool
	 */
	public function mkdir($path, $mode, $options);

	/**
	 * @param string $source
	 * @param string $target
	 * @return bool
	 */
	public function rename($source, $target);

	/**
	 * @param string $path
	 * @param int $options
	 * @return bool
	 */
	public function rmdir($path, $options);

	/**
	 * @param string $path
	 * @return bool
	 */
	public function unlink($path);

	/**
	 * @param string $path
	 * @param int $flags
	 * @return array|false
	 */
	public function url_stat($path, $flags);
}