@@ -217,15 +217,15 @@ fn network_scan(uri: &str, sizes: IconSizes) -> Result<Vec<tab::Item>, String> {
217217 Ok ( items)
218218}
219219
220- fn dir_info ( uri : & str ) -> Result < ( String , String ) , glib:: Error > {
220+ fn dir_info ( uri : & str ) -> Result < ( String , String , Option < PathBuf > ) , glib:: Error > {
221221 let ( resolved_uri, file) = resolve_uri ( uri) ;
222222 let info = file. query_info (
223223 gio:: FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME ,
224224 gio:: FileQueryInfoFlags :: NONE ,
225225 gio:: Cancellable :: NONE ,
226226 ) ?;
227227
228- Ok ( ( resolved_uri, info. display_name ( ) . into ( ) ) )
228+ Ok ( ( resolved_uri, info. display_name ( ) . into ( ) , file . path ( ) ) )
229229}
230230
231231fn mount_op ( uri : String , event_tx : mpsc:: UnboundedSender < Event > ) -> gio:: MountOperation {
@@ -288,7 +288,10 @@ enum Cmd {
288288 IconSizes ,
289289 mpsc:: Sender < Result < Vec < tab:: Item > , String > > ,
290290 ) ,
291- DirInfo ( String , mpsc:: Sender < Result < ( String , String ) , glib:: Error > > ) ,
291+ DirInfo (
292+ String ,
293+ mpsc:: Sender < Result < ( String , String , Option < PathBuf > ) , glib:: Error > > ,
294+ ) ,
292295 Unmount ( MounterItem ) ,
293296}
294297
@@ -651,7 +654,7 @@ impl Mounter for Gvfs {
651654 items_rx. blocking_recv ( )
652655 }
653656
654- fn dir_info ( & self , uri : & str ) -> Option < ( String , String ) > {
657+ fn dir_info ( & self , uri : & str ) -> Option < ( String , String , Option < PathBuf > ) > {
655658 let ( result_tx, mut result_rx) = mpsc:: channel ( 1 ) ;
656659 self . command_tx
657660 . send ( Cmd :: DirInfo ( uri. to_string ( ) , result_tx) )
0 commit comments