Displayed name of file
(&self)
| 184 | |
| 185 | /// Displayed name of file |
| 186 | pub fn name(&self) -> BnString { |
| 187 | let result = unsafe { BNRemoteFileGetName(self.handle.as_ptr()) }; |
| 188 | assert!(!result.is_null()); |
| 189 | unsafe { BnString::from_raw(result) } |
| 190 | } |
| 191 | |
| 192 | /// Set the description of the file. You will need to push the file to update the remote version. |
| 193 | pub fn set_name<S: BnStrCompatible>(&self, name: S) -> Result<(), ()> { |