Changeset 779 for baculafs/trunk


Ignore:
Timestamp:
Jul 24, 2009, 11:48:06 PM (15 years ago)
Author:
joergs
Message:

added information

Location:
baculafs/trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • baculafs/trunk/baculafs.py

    r778 r779  
    8484###############
    8585
    86 hello_world_path = "/helloworld"
    87 hello_world = "Hello World!"
    88 
    8986class BaculaFS(fuse.Fuse):
    9087
     
    163160        elif file['type'] == self.TYPE_DIR:
    164161            st.st_mode = stat.S_IFDIR | 0755
    165             st.st_nlink = 2
     162            if 'dirs' in file:
     163                st.st_nlink = len(file['dirs'])
     164            else:
     165                st.st_nlink = 2
    166166        else:
    167167            return -errno.ENOENT
Note: See TracChangeset for help on using the changeset viewer.