Non-directory, non-file "files"

If they’re not directories, and they’re not files, then what the heck
are they?

C:\Documents and Settings\gavin.kistner>ruby -rfind -e
“Find.find(’.’){|x| p(x) unless File.directory?(x) or File.file?(x) }”

“./Local Settings/Temporary Internet
Files/Content.IE5/T7JZHP42/GGLD%3A2005-16%2CGGLD%3Aen%26q%3Ddsl%2Bcentra
l%2Boffice%2Blocations%2Bmap&cc=483&u_h=1200&u_w=1600&u_ah=1170&u_aw=160
0&u_cd=32&u_tz=-360&u_his=11&u_java=true”
“./Local Settings/Temporary Internet
Files/Content.IE5/S1MNKLUJ/eamxbox&dechannel=teamxbox&size=skyscraper&re
gspeed=-1&PageId=1160506887961&random=1160506887961&property=teamxbox&ar
ticletype=movie+popup&tile=1160506891458”
“./Local Settings/Temporary Internet
Files/Content.IE5/Q93CTSZU/teamxbox&dechannel=teamxbox&size=1x1&regspeed
=-1&name=ATAtracker&PageId=1160506887304&random=1160506887304&ct=js&prop
erty=teamxbox&articletype=movie%2Bpopup&”
“./Local Settings/Temporary Internet
Files/Content.IE5/PCO7XLCT/site=teamxbox&dechannel=teamxbox&size=text&re
gspeed=-1&PageId=1160506893711&random=1160506893711&property=teamxbox&ar
ticletype=movie+popup&tile=1160506893958”
“./Local Settings/Temporary Internet
Files/Content.IE5/0F17EUFT/CAZUHWT7.php%3Fgroup_id%3D50233%26package_id%
3D43880%26release_id%3D413309&cc=100&u_h=1200&u_w=1600&u_ah=1170&u_aw=16
00&u_cd=32&u_tz=-360&u_his=2&u_java=true”

Are there similar items on non-Windows systems? (Items that would be
listed by Find.find or Dir.entries that would respond false to both
.directory? and .file?

On Oct 19, 2006, at 12:02 PM, Gavin K. wrote:

If they’re not directories, and they’re not files, then what the heck
are they?

symbolic links?

Gary W.

On Fri, 20 Oct 2006, Gavin K. wrote:

“./Local Settings/Temporary Internet
ticletype=movie+popup&tile=1160506893958”
“./Local Settings/Temporary Internet
Files/Content.IE5/0F17EUFT/CAZUHWT7.php%3Fgroup_id%3D50233%26package_id%
3D43880%26release_id%3D413309&cc=100&u_h=1200&u_w=1600&u_ah=1170&u_aw=16
00&u_cd=32&u_tz=-360&u_his=2&u_java=true”

Are there similar items on non-Windows systems? (Items that would be
listed by Find.find or Dir.entries that would respond false to both
.directory? and .file?

irb(main):010:0> File.file? ‘/dev/cdrom’
=> false
irb(main):011:0> File.directory? ‘/dev/cdrom’
=> false
irb(main):012:0> File.blockdev? ‘/dev/cdrom’
=> true

-a

On Fri, Oct 20, 2006 at 01:10:30AM +0900, [email protected] wrote:

On Oct 19, 2006, at 12:02 PM, Gavin K. wrote:

If they’re not directories, and they’re not files, then what the heck
are they?

symbolic links?

Only if they were broken symlinks (otherwise they would be followed to
determine type).

[email protected] wrote:

On Oct 19, 2006, at 12:02 PM, Gavin K. wrote:

If they’re not directories, and they’re not files, then what the heck
are they?

symbolic links?

Named Pipes
Char Devices
Block Devices
Sockets (Unix, TCP)
Soft Links
Virtual Devices (is this the proper name? I mean Linux’s /proc, probably
just char dev with a special driver)

I cannot think of more off the top of my head but there are probably.

Depends on the OS of course (I could not see the original post via news,
Gateway issues again?)

robert

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs