Get the folder that contains this file
(&self)
| 91 | |
| 92 | /// Get the folder that contains this file |
| 93 | pub fn folder(&self) -> Option<Ref<ProjectFolder>> { |
| 94 | let result = unsafe { BNProjectFileGetFolder(self.handle.as_ptr()) }; |
| 95 | NonNull::new(result).map(|handle| unsafe { ProjectFolder::ref_from_raw(handle) }) |
| 96 | } |
| 97 | |
| 98 | /// Set the folder that contains this file |
| 99 | pub fn set_folder(&self, folder: Option<&ProjectFolder>) -> bool { |