Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/drydock/interface/filesystem/DrydockFilesystemInterface.php
12262 views
1
<?php
2
3
abstract class DrydockFilesystemInterface extends DrydockInterface {
4
5
final public function getInterfaceType() {
6
return 'filesystem';
7
}
8
9
/**
10
* Reads a file on the Drydock resource and returns the contents of the file.
11
*/
12
abstract public function readFile($path);
13
14
/**
15
* Reads a file on the Drydock resource and saves it as a PhabricatorFile.
16
*/
17
abstract public function saveFile($path, $name);
18
19
/**
20
* Writes a file to the Drydock resource.
21
*/
22
abstract public function writeFile($path, $data);
23
24
}
25
26