Advertisement
Guest User

Untitled

a guest
Sep 24th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. (setq fmode (nth 8 (file-attributes "/Users/sk/a.js")))
  2. (message "file mode is as, - %s" fmode)
  3. (string-match "^.\(...\)\(...\)\(...\)$" fmode)
  4. (message "User permission - %s" (match-string 1))
  5. (message "Group permission - %s" (match-string 2))
  6. (message "Others permission - %s" (match-string 3))
  7.  
  8. file mode is as, - -rw-r--r--
  9. User permission - (se
  10. Group permission - tq
  11. Others permission - fmo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement