Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (setq fmode (nth 8 (file-attributes "/Users/sk/a.js")))
- (message "file mode is as, - %s" fmode)
- (string-match "^.\(...\)\(...\)\(...\)$" fmode)
- (message "User permission - %s" (match-string 1))
- (message "Group permission - %s" (match-string 2))
- (message "Others permission - %s" (match-string 3))
- file mode is as, - -rw-r--r--
- User permission - (se
- Group permission - tq
- Others permission - fmo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement