MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / create_file_from_path

Method create_file_from_path

rust/src/project.rs:345–364  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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 ///

Callers 1

modify_projectFunction · 0.45

Tested by 1

modify_projectFunction · 0.36