File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ impl Project {
578578 /// Retrieve a list of files in the project by the `path` inside the project.
579579 ///
580580 /// Because a [`ProjectFile`] name is not unique, this returns a list instead of a single [`ProjectFile`].
581- pub fn files_by_path_in_project ( & self , path : & Path ) -> Array < ProjectFile > {
581+ pub fn files_by_project_path ( & self , path : & Path ) -> Array < ProjectFile > {
582582 let path_raw = path. to_cstr ( ) ;
583583 let mut count = 0 ;
584584 let result = unsafe {
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ impl ProjectFile {
4747 }
4848
4949 /// Get the path in the project to this file's contents
50- pub fn path_in_project ( & self ) -> Option < PathBuf > {
50+ pub fn path_in_project ( & self ) -> PathBuf {
5151 let path_str =
5252 unsafe { BnString :: into_string ( BNProjectFileGetPathInProject ( self . handle . as_ptr ( ) ) ) } ;
53- Some ( PathBuf :: from ( path_str) )
53+ PathBuf :: from ( path_str)
5454 }
5555
5656 /// Check if this file's contents exist on disk
You can’t perform that action at this time.
0 commit comments