Index: trunk/extensions/Deployment/includes/filesystems/Ssh2Filesystem.php |
— | — | @@ -239,7 +239,7 @@ |
240 | 240 | /** |
241 | 241 | * @see Filesystem::getContents |
242 | 242 | */ |
243 | | - public function getContents() { |
| 243 | + public function getContents( $file ) { |
244 | 244 | return file_get_contents( 'ssh2.sftp://' . $this->sftpConnection . '/' . ltrim( $file, '/' ) ); |
245 | 245 | } |
246 | 246 | |
— | — | @@ -307,35 +307,35 @@ |
308 | 308 | * @see Filesystem::getSize |
309 | 309 | */ |
310 | 310 | public function getSize( $file ) { |
311 | | - |
| 311 | + return filesize( 'ssh2.sftp://' . $this->sftpConnection . '/' . ltrim( $file, '/' ) ); |
312 | 312 | } |
313 | 313 | |
314 | 314 | /** |
315 | 315 | * @see Filesystem::isDir |
316 | 316 | */ |
317 | 317 | public function isDir( $path ) { |
318 | | - |
| 318 | + return is_dir( 'ssh2.sftp://' . $this->sftpConnection . '/' . ltrim( $file, '/' ) ); |
319 | 319 | } |
320 | 320 | |
321 | 321 | /** |
322 | 322 | * @see Filesystem::isFile |
323 | 323 | */ |
324 | 324 | public function isFile( $path ) { |
325 | | - |
| 325 | + return is_file( 'ssh2.sftp://' . $this->sftpConnection . '/' . ltrim( $file, '/' ) ); |
326 | 326 | } |
327 | 327 | |
328 | 328 | /** |
329 | 329 | * @see Filesystem::isReadable |
330 | 330 | */ |
331 | 331 | public function isReadable( $file ) { |
332 | | - |
| 332 | + return is_readable( 'ssh2.sftp://' . $this->sftpConnection . '/' . ltrim( $file, '/' ) ); |
333 | 333 | } |
334 | 334 | |
335 | 335 | /** |
336 | 336 | * @see Filesystem::isWritable |
337 | 337 | */ |
338 | 338 | public function isWritable( $file ) { |
339 | | - |
| 339 | + return is_writable( 'ssh2.sftp://' . $this->sftpConnection . '/' . ltrim( $file, '/' ) ); |
340 | 340 | } |
341 | 341 | |
342 | 342 | /** |