I am trying to reproduce the Unix ls file permissions, as in:-rwxr-x--x|   
---|---  
  
I have tried: 
    
    
    for file in walkFiles("*"):
        echo(file.getFilePermissions, file)
    
    
    Run

but what I get looks like the following: 
    
    
    {fpUserWrite, fpUserRead, fpGroupWrite, fpGroupRead, fpOthersRead}testfile1
    
    
    Run

Does anyone know a way to get the standard Unix/Linux permissions string using 
Nim?

Reply via email to