Skip to content

Unable to access contents in mtp Device #4476

Closed

Description

Steps to reproduce

  • Plug in mobile device in Media Device mode
  • Set-Location to "/run/user/$(bash -c 'echo $UID')/gvfs"
  • Try to navigate to mtp device:
    A Get-ChildItem shows my device:
PS /run/user/1000/gvfs> Get-ChildItem                                                                           


    Directory: /run/user/1000/gvfs


Mode                LastWriteTime         Length Name                                                          
----                -------------         ------ ----                                                          
d-r---         01/01/70   5:30 AM                mtp:host=%5Busb%3A002%2C003%5D

Expected behavior

Read only access to all files and folders on the device

Actual behavior

PS /run/user/1000/gvfs> cd ./mtp:host=%5Busb%3A002%2C003%5D/                                                    
cd : Cannot find drive. A drive with the name 'run/user/1000/gvfs/mtp' does not exist.
At line:1 char:1
+ cd ./mtp:host=%5Busb%3A002%2C003%5D/
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (run/user/1000/gvfs/mtp:String) [Set-Location], DriveNotFoundExc 
   eption
    + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

Environment data

PS /home/user> lsb_release -a                                                                                   
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 17.04
Release:	17.04
Codename:	zesty


PS /home/user> $PSVersionTable
Name                           Value                                                                           
----                           -----                                                                           
PSVersion                      6.0.0-alpha                                                                     
PSEdition                      Core                                                                            
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                         
BuildVersion                   3.0.0.0                                                                         
GitCommitId                    v6.0.0-alpha.16                                                                 
CLRVersion                                                                                                     
WSManStackVersion              3.0                                                                             
PSRemotingProtocolVersion      2.3                                                                             
SerializationVersion           1.1.0.1

PS /home/user> screenfetch                                                                             
                          ./+o+-       sahu@Dell-Inspiron
                  yyyyy- -yyyyyy+      OS: Ubuntu 17.04 zesty
               ://+//////-yyyyyyo      Kernel: x86_64 Linux 4.10.0-19-generic
           .++ .:/++++++/-.+sss/`      Uptime: 20m
         .:++o:  /++++++++/:--:/-      Packages: 3267
        o:+o+:++.`..```.-/oo+++++/     Shell: powershell
       .:+o:+o/.          `+sssoo+/    Resolution: 1366x768
  .++/+:+oo+o:`             /sssooo.   WM: Compiz
 /+++//+:`oo+o               /::--:.   WM Theme: Numix
 \+/+o+++`o++o               ++////.   CPU: Intel Core i5-4200U CPU @ 1.5GHz
  .++.o+++oo+:`             /dddhhh.   GPU: Mesa DRI Intel(R) Haswell Mobile 
       .+.o+oo:.          `oddhhhh+    RAM: 1604MiB / 5853MiB
        \+.++o+o``-````.:ohdhhhhh+    
         `:o+++ `ohhhhhhhhyo++os:     
           .o:`.syhhhhhhh/.oo++o`     
               /osyyyyyyo++ooo+++/    
                   ````` +oo+++o\:    
                          `oo++.

Activity

  1. added
    WG-Engine-Providers
    on Aug 4, 2017
  2. added this to the milestone on Aug 4, 2017
  3. modified the milestones: , on Sep 19, 2017
  4. anmenaga commented on Sep 29, 2017

    @anmenaga

    Can repro on Ubuntu 16 with Nexus 10 tablet.

    This is the same as #4889 .
    The directory name has a colon that results in invalid drive name when parsing the path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Resolution-DuplicateWG-Engine-Providers

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions