File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424
2525use OCP \Constants ;
2626use OCP \Files \Cache \ICache ;
27+ use OCP \Files \Cache \ICacheEntry ;
2728use OCP \Files \Search \ISearchQuery ;
2829
2930/**
@@ -134,4 +135,8 @@ public function getPathById($id) {
134135 public function normalize ($ path ) {
135136 return $ path ;
136137 }
138+
139+ public function copyFromCache (ICache $ sourceCache , ICacheEntry $ sourceEntry , string $ targetPath ): int {
140+ throw new \Exception ("Invalid cache " );
141+ }
137142}
Original file line number Diff line number Diff line change 2626use OC \Files \Cache \CacheEntry ;
2727use OCP \Constants ;
2828use OCP \Files \Cache \ICache ;
29+ use OCP \Files \Cache \ICacheEntry ;
2930use OCP \Files \FileInfo ;
3031use OCP \Files \Search \ISearchQuery ;
3132
@@ -122,4 +123,8 @@ public function getPathById($id) {
122123 public function normalize ($ path ) {
123124 return $ path ;
124125 }
126+
127+ public function copyFromCache (ICache $ sourceCache , ICacheEntry $ sourceEntry , string $ targetPath ): int {
128+ throw new \OC \ForbiddenException ('This request is not allowed to access the filesystem ' );
129+ }
125130}
You can’t perform that action at this time.
0 commit comments