I want to make file permission format like '-rw-r-----'
but get_Permission() return type is integer.
I looked up the function on the chilkat site
but I don't know what to do.
I want to compare get_Permission return value and the octal value as below.
Please let me know.
========================================================================================== The 'permissions' field contains a bit mask specifying file permissions. These permissions correspond to the st_mode field of the stat structure defined by POSIX [IEEE.1003-1.1996].
This protocol uses the following values for the symbols declared in the POSIX standard.
I don't understand the problem. Yes, it returns an integer as it should. An integer is an integer. An integer value can be represented in string form in many different number bases: binary, octal, decimal, hexidecimal, etc. When you see "S_IRUSR 0000400 (octal)" it's simply the octal representation of the integer. For example "0000400" octal is equal to 4*8^2 in decimal.
answered Aug 19 '13 at 12:23