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 `id` - id unique ID `creation_time` - Creation time of the file
(
&self,
path: P,
folder: Option<&ProjectFolder>,
name: N,
description: D,
id: I,
creation_time: SystemTime,
)
| 412 | /// * `id` - id unique ID |
| 413 | /// * `creation_time` - Creation time of the file |
| 414 | pub unsafe fn create_file_from_path_unsafe<P, N, D, I>( |
| 415 | &self, |
| 416 | path: P, |
| 417 | folder: Option<&ProjectFolder>, |
| 418 | name: N, |
| 419 | description: D, |
| 420 | id: I, |
| 421 | creation_time: SystemTime, |
| 422 | ) -> Result<Ref<ProjectFile>, ()> |
| 423 | where |
| 424 | P: BnStrCompatible, |
| 425 | N: BnStrCompatible, |
| 426 | D: BnStrCompatible, |
| 427 | I: BnStrCompatible, |
| 428 | { |
| 429 | self.create_file_from_path_unsafe_with_progress( |
| 430 | path, |
| 431 | folder, |
| 432 | name, |
| 433 | description, |
| 434 | id, |
| 435 | creation_time, |
| 436 | NoProgressCallback, |
| 437 | ) |
| 438 | } |
| 439 | |
| 440 | /// Create a file in the project from a path on disk |
| 441 | /// |