Ziyan has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
Michaela has quit [Ping timeout: 268 seconds]
Michaela has joined #ruby
TomyWork has joined #ruby
Michaela has quit [Remote host closed the connection]
<hightower4>
Hm how do I get file mode? If I do File.stat(something), I see `mode=0100644` which is almost what I want. But if I print .mode, it gives me 33188.
<hightower4>
I want mode represented as '0664', so that I can use it as a param to a function expecting a mode.
<hightower4>
Any hints?
Aminda has joined #ruby
<hightower4>
(I meant '0644' to match the example above, but the value doesn't matter. I was referring to the general representation)
<hightower4>
ah .mode.to_s(8)... I was trying foolishly with .mode.to_i(8) :)
<hightower4>
actually even better, of course File#mode can be passed as argument to a function expecting mode. I was just looking for results in the wrong place
Aminda has quit [Remote host closed the connection]
Ziyan has joined #ruby
Aminda has joined #ruby
hightower4 has quit [Remote host closed the connection]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
Ziyan has quit [Ping timeout: 248 seconds]
Ziyan has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Tempesta has quit [Excess Flood]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
dionysus69 has joined #ruby
hightower2 has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
protektwar has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
dionysus70 is now known as dionysus69
mjacob has quit [Ping timeout: 244 seconds]
mjacob has joined #ruby
Successus has joined #ruby
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
cahoots has joined #ruby
cahoots has quit [Ping timeout: 252 seconds]
Guest14 has joined #ruby
Guest14 has quit [Client Quit]
dionysus69 has quit [Ping timeout: 248 seconds]
cahoots has joined #ruby
Pixi` has joined #ruby
Pixi has quit [Ping timeout: 248 seconds]
markong has joined #ruby
Ziyan has quit [Ping timeout: 248 seconds]
Ziyan has joined #ruby
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
cek has joined #ruby
bit4bit has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
rvalue has quit [Remote host closed the connection]
rvalue has joined #ruby
arg_ has quit [Quit: Connection closed for inactivity]
___nick___ has joined #ruby
jmcgnh has quit [Ping timeout: 256 seconds]
jmcgnh has joined #ruby
Ziyan has joined #ruby
bit4bit has quit [Ping timeout: 248 seconds]
Ziyan_ has quit [Ping timeout: 255 seconds]
arg_ has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 244 seconds]
desnudopenguino1 is now known as desnudopenguino
dionysus69 has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
dionysus70 is now known as dionysus69
comet23 has joined #ruby
work has joined #ruby
sagax has quit [Ping timeout: 248 seconds]
Pixi` has quit [Quit: Leaving]
xyhuvud has joined #ruby
cek has quit [Quit: Connection closed for inactivity]