F3 in iPhone directory -> Search path not found!

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
mbillig02
Junior Member
Junior Member
Posts: 4
Joined: 2009-04-14, 13:29 UTC

F3 in iPhone directory -> Search path not found!

Post by *mbillig02 »

When trying to view (F3) JPG file on my iPhone I get an error "Search path not found!"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: F3 in iPhone directory -> Search path not found!

Post by *ghisler(Author) »

Unfortunately you cannot view files in virtual folders, the same doesn't work with Android or MP3 players.

Reason: There is no file to access. On Windows Vista and newer, there is a way to get an IStream interface to read the data. However, this would only work with lister's internal methods. It wouldn't work with any Lister plugins.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: F3 in iPhone directory -> Search path not found!

Post by *petermad »

2mbillig02
You can in most cases browse your phone with the "Windows Media Audio 2" plugin: http://ghisler.fileburst.com/fsplugins/wpdplug.zip (don't let the name of the plugin think that you can't use it for this). And with this plugin you can view files with F3
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
yiuimex
Junior Member
Junior Member
Posts: 62
Joined: 2019-03-28, 08:02 UTC

Re: F3 in iPhone directory -> Search path not found!

Post by *yiuimex »

ghisler(Author) wrote: 2020-02-11, 09:28 UTC Unfortunately you cannot view files in virtual folders, the same doesn't work with Android or MP3 players.
those Device, which have no Drive Letter, can be get as virtual Folder like ZIP File
Image: https://www.hmgforum.com/download/file.php?id=9617

Code: Select all

FUNCTION GetDeviceList()
   LOCAL oShell,oFolder ,oItems, oItem
   LOCAL cName
   LOCAL i, iMax
   Form_1.Tree_COMPUTER.DeleteAllItems

   oShell := CreateObject( "shell.application" )
   IF NIL <> oShell
      oFolder := oShell:NameSpace( CSIDL_DRIVES )                     // 0x0011 // My Computer
      IF NIL <> oFolder
         oItems := oFolder:Items()
         iMax := oItems:Count
         aDevices := {}
         FOR i := 1 TO iMax
            oItem := oItems:Item( i - 1 )
            IF !EMPTY( oItem )
               aAdd(aDevices, oItem)
               cName := UPPER( oItem:name )
               // add item to tree
               Form_1.TREE_COMPUTER.AddItem(cName,0, len(aDevices))
            ENDIF
         NEXT i
      ENDIF
   ENDIF
RETURN
than you can travel down Subfolder to get Media of Device

Code: Select all

PROCEDURE ScanDevice(oDevice, nParent, cParent)
...
      oStorageFolder := oDevice:GetFolder:items
...
      iMax := oStorageFolder:Count
     // directories first
      FOR i = 1 TO iMax
         oStorageFile := oStorageFolder:Item( i - 1 )
         if !empty(oStorageFile)
            if oStorageFile:IsFolder
               nItemID++
               Form_1.Tree_1.AddItem( oStorageFile:name, nParent, nItemID)

               // recursiv
               ScanDevice( oStorageFile, nItemID, oStorageFile:name )
            endif
         endif
      next i

      // and now, rest of files
      FOR i = 1 TO iMax
         oStorageFile := oStorageFolder:Item( i - 1 )
         if !empty( oStorageFile )
            xItem := {oStorageFile:name }

            // abandon links
            if oStorageFile:IsLink
               loop
            endif
            //abandon directories
            if oStorageFile:IsFolder
               loop
            endif
            nItemID++
            Form_1.Tree_1.AddItem( oStorageFile:name, nParent, nItemID)
         endif
      next i

   END SEQUENCE

   oStorageFile := NIL
   oStorageFolder := NIL

RETURN
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: F3 in iPhone directory -> Search path not found!

Post by *ghisler(Author) »

I'm already doing this, but can you somehow get an iStream or so for the actual file data?
Author of Total Commander
https://www.ghisler.com
User avatar
yiuimex
Junior Member
Junior Member
Posts: 62
Joined: 2019-03-28, 08:02 UTC

Re: F3 in iPhone directory -> Search path not found!

Post by *yiuimex »

hi,

that is why i talk about virtual Folder like ZIP while using same Method CopyHere() / MoveHere()

Code: Select all

   IF NIL <> xFolder
      xItems := xFolder:GetFolder:Items()
      IF lTransfer = .T.
         CopyFiles( xItems, cTarget, lMove )

Code: Select all

Function CopyFiles(oDirFolder, cTarget, lMove )
LOCAL oNewSH  := CreateObject( "Shell.Application" )
LOCAL oTarget := oNewSH:NameSpace( cTarget )
LOCAL i, iMax := oDirFolder:Count
...
   FOR i := 1 TO iMax
      // get Item Object
      oFile := oDirFolder:Item( i - 1 )

      IF lMove = .T.
         // move single Object file
         oTarget:MoveHere( oFile, xFlag )
      ELSE
         // copy single Object file
         oTarget:CopyHere( oFile, xFlag )
      ENDIF

      // wait until all files are written
      xCount := 0
      DO WHILE .T.
         // compare if file is written
         nCount := oTarget:items() :Count()
         IF nCount + nSkip >= i
            EXIT
         ENDIF
         hb_idleSleep( 0.1 )
         xCount ++
         IF xCount > 50
            EXIT
         ENDIF
      ENDDO
   NEXT
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: F3 in iPhone directory -> Search path not found!

Post by *ghisler(Author) »

Yes, TC can already copy and move files from/to virtual folders. But that's not the point here - I need to access the content directly to view them.
Author of Total Commander
https://www.ghisler.com
User avatar
yiuimex
Junior Member
Junior Member
Posts: 62
Joined: 2019-03-28, 08:02 UTC

Re: F3 in iPhone directory -> Search path not found!

Post by *yiuimex »

hi,
ghisler(Author) wrote: 2020-07-13, 13:55 UTC Yes, TC can already copy and move files from/to virtual folders. But that's not the point here - I need to access the content directly to view them.
can you view file "in" zip direct :?:
you have to (temporary) extract it and than you can view it.
Post Reply