Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Unable to access contents in mtp Device #4476

Copy link
Copy link
@mrsauravsahu

Description

@mrsauravsahu
Issue body actions

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++.
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Resolution-DuplicateThe issue is a duplicate.The issue is a duplicate.WG-Engine-Providersbuilt-in PowerShell providers such as FileSystem, Certificates, Registry, etc.built-in PowerShell providers such as FileSystem, Certificates, Registry, etc.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.