File Directory Ruby

File.stat("testfile").socket?