Android Question Read the directory names

Discussion in 'Android Questions' started by anallie0, Mar 2, 2015.

  1. anallie0

    anallie0 Active Member Licensed User

    hi
    There is a way to read the directory names to put them in a list.
    For example, similar to
    Code:
    File.ListFiles (File.DirRootExternal)
    thanks
     
  2. eurojam

    eurojam Well-Known Member Licensed User

    Code:
    Dim l As List
        
    Dim l2 As List
        l2.Initialize
        l = 
    File.ListFiles (File.DirRootExternal)
        
    For i=0 To l.Size-1
          
    If File.IsDirectory(File.DirRootExternal, l.Get(i)) Then
             l2.Add(l.Get(i))
             
    Log(l.Get(i))
          
    End If
        
    Next
        
    Log(l2.Size)
     
    wonder, DonManfred, Devan and 2 others like this.
  3. anallie0

    anallie0 Active Member Licensed User

    thank you very much eurojam
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice