Create a file in the project from a path on disk `path` - Path on disk `folder` - Folder to place the created file in `name` - Name to assign to the created file `description` - Description to assign to the created file
(
&self,
path: P,
folder: Option<&ProjectFolder>,
name: N,
description: D,
)
| 343 | /// * `name` - Name to assign to the created file |
| 344 | /// * `description` - Description to assign to the created file |
| 345 | pub fn create_file_from_path<P, N, D>( |
| 346 | &self, |
| 347 | path: P, |
| 348 | folder: Option<&ProjectFolder>, |
| 349 | name: N, |
| 350 | description: D, |
| 351 | ) -> Result<Ref<ProjectFile>, ()> |
| 352 | where |
| 353 | P: BnStrCompatible, |
| 354 | N: BnStrCompatible, |
| 355 | D: BnStrCompatible, |
| 356 | { |
| 357 | self.create_file_from_path_with_progress( |
| 358 | path, |
| 359 | folder, |
| 360 | name, |
| 361 | description, |
| 362 | NoProgressCallback, |
| 363 | ) |
| 364 | } |
| 365 | |
| 366 | /// Create a file in the project from a path on disk |
| 367 | /// |