Retrieve information about the file at *path* on the *service_name*. :param string/unicode service_name: the name of the shared folder for the *path* :param string/unicode path: Path of the file on the remote server. If the file cannot be opened for reading, an :doc:`Operat
(self, service_name, path, timeout = 30)
| 225 | return d |
| 226 | |
| 227 | def getAttributes(self, service_name, path, timeout = 30): |
| 228 | """ |
| 229 | Retrieve information about the file at *path* on the *service_name*. |
| 230 | |
| 231 | :param string/unicode service_name: the name of the shared folder for the *path* |
| 232 | :param string/unicode path: Path of the file on the remote server. If the file cannot be opened for reading, an :doc:`OperationFailure<smb_exceptions>` will be raised. |
| 233 | :return: A *twisted.internet.defer.Deferred* instance. The callback function will be called with a :doc:`smb.base.SharedFile<smb_SharedFile>` instance containing the attributes of the file. |
| 234 | """ |
| 235 | if not self.instance: |
| 236 | raise NotConnectedError('Not connected to server') |
| 237 | |
| 238 | d = defer.Deferred() |
| 239 | self.instance._getAttributes(service_name, path, d.callback, d.errback, timeout = timeout) |
| 240 | return d |
| 241 | |
| 242 | def retrieveFile(self, service_name, path, file_obj, timeout = 30): |
| 243 | """ |
nothing calls this directly
no test coverage detected