Returns the permissions and other information about the file >>> f = SSHPath('filename', ssh=ssh_conn) >>> f.touch() >>> stat = f.stat() >>> stat.st_size 0 >>> '%o' % stat.st_mode # doctest: +ELLIPSIS '...664'
(self)
| 410 | raise ValueError("Could not normalize path: %r" % path) |
| 411 | |
| 412 | def stat(self): |
| 413 | """Returns the permissions and other information about the file |
| 414 | |
| 415 | >>> f = SSHPath('filename', ssh=ssh_conn) |
| 416 | >>> f.touch() |
| 417 | >>> stat = f.stat() |
| 418 | >>> stat.st_size |
| 419 | 0 |
| 420 | >>> '%o' % stat.st_mode # doctest: +ELLIPSIS |
| 421 | '...664' |
| 422 | """ |
| 423 | return self.ssh.sftp.stat(self.path) |
| 424 | |
| 425 | def owner(self): |
| 426 | raise NotImplementedError() |