@@ 1001-1003 (lines=3) @@ | ||
998 | return array('error' => $this->error(self::ERROR_OPEN, '#'.$target, self::ERROR_FILE_NOT_FOUND)); |
|
999 | } |
|
1000 | ||
1001 | if (($content = $volume->getContents($target)) === false) { |
|
1002 | return array('error' => $this->error(self::ERROR_OPEN, $volume->path($target), $volume->error())); |
|
1003 | } |
|
1004 | ||
1005 | $json = json_encode($content); |
|
1006 | ||
@@ 1028-1030 (lines=3) @@ | ||
1025 | return array('error' => $this->error(self::ERROR_SAVE, '#'.$target, self::ERROR_FILE_NOT_FOUND)); |
|
1026 | } |
|
1027 | ||
1028 | if (($file = $volume->putContents($target, $args['content'])) == false) { |
|
1029 | return array('error' => $this->error(self::ERROR_SAVE, $volume->path($target), $volume->error())); |
|
1030 | } |
|
1031 | ||
1032 | return array('changed' => array($file)); |
|
1033 | } |