pub fn basename(&self) -> Cow<str> {
        unsafe {
            String::from_utf8_lossy(CStr::from_ptr(self.inner.name.as_ptr()).to_bytes())
        }
    }
/// Returns the name of the file without the directory.
Returns the name of the file without the directory.
Returns the name of the file without the directory .
pub fn basename(&self) -> Cow<str> {
        unsafe {
            String::from_utf8_lossy(CStr::from_ptr(self.inner.name.as_ptr()).to_bytes())
        }
    }
pub fn basename ( & self ) -> Cow < str > { unsafe { String :: from_utf8_lossy ( CStr :: from_ptr ( self . inner . name . as_ptr ( ) ) . to_bytes ( ) ) } }
Returns the name of the file without the directory.
Returns the name of the file without the directory .
&self
&self