Source

cffi / demo / readdir.py

The branch 'release-0.4.1' does not exist.
Diff from to

File demo/readdir.py

             break
         if result[0] == ffi.NULL:
             break
-        name = str(dirent.d_name)
+        name = ffi.string(dirent.d_name)
         print '%3d %s' % (dirent.d_type, name)
         if dirent.d_type == 4 and name != '.' and name != '..':
             walk(dirfd, name)