parameters: (uMode)
return_statement: return sMode
docstring: Format a st_mode value 'ls -la' fasion.
      Returns string.
docstring_summary: Format a st_mode value 'ls -la' fasion.
      Returns string.
docstring_tokens: Format a st_mode value ls - la fasion . Returns string .
function: def formatFileMode(uMode):
      # type: (int) -> string
      """
      Format a st_mode value 'ls -la' fasion.
      Returns string.
      """
      if   stat.S_ISDIR(uMode):   sMode = 'd';
      elif stat.S_ISREG(uMode):   sMode = '-';
      elif stat.S_ISLNK(uMode):   sMode = 'l';
      elif stat.S_ISFIFO(uMode):  sMode = 'p';
      elif stat.S_ISCHR(uMode):   sMode = 'c';
      elif stat.S_ISBLK(uMode):   sMode = 'b';
      elif stat.S_ISSOCK(uMode):  sMode = 's';
      else:                       sMode = '?';
      ## @todo sticky bits.
      sMode += 'r' if uMode & stat.S_IRUSR else '-';
      sMode += 'w' if uMode & stat.S_IWUSR else '-';
      sMode += 'x' if uMode & stat.S_IXUSR else '-';
      sMode += 'r' if uMode & stat.S_IRGRP else '-';
      sMode += 'w' if uMode & stat.S_IWGRP else '-';
      sMode += 'x' if uMode & stat.S_IXGRP else '-';
      sMode += 'r' if uMode & stat.S_IROTH else '-';
      sMode += 'w' if uMode & stat.S_IWOTH else '-';
      sMode += 'x' if uMode & stat.S_IXOTH else '-';
      sMode += ' ';
      return sMode;
function_tokens: def formatFileMode ( uMode ) : # type: (int) -> string if stat . S_ISDIR ( uMode ) : sMode = 'd' elif stat . S_ISREG ( uMode ) : sMode = '-' elif stat . S_ISLNK ( uMode ) : sMode = 'l' elif stat . S_ISFIFO ( uMode ) : sMode = 'p' elif stat . S_ISCHR ( uMode ) : sMode = 'c' elif stat . S_ISBLK ( uMode ) : sMode = 'b' elif stat . S_ISSOCK ( uMode ) : sMode = 's' else : sMode = '?' ## @todo sticky bits. sMode += 'r' if uMode & stat . S_IRUSR else '-' sMode += 'w' if uMode & stat . S_IWUSR else '-' sMode += 'x' if uMode & stat . S_IXUSR else '-' sMode += 'r' if uMode & stat . S_IRGRP else '-' sMode += 'w' if uMode & stat . S_IWGRP else '-' sMode += 'x' if uMode & stat . S_IXGRP else '-' sMode += 'r' if uMode & stat . S_IROTH else '-' sMode += 'w' if uMode & stat . S_IWOTH else '-' sMode += 'x' if uMode & stat . S_IXOTH else '-' sMode += ' ' return sMode