Inanimate objects like floors and walls have no substance on the astral, but they are an obstacle to vision and all the other senses, including the sixth sense of magically active beings. That makes them an effective barrier to all forms of magical attack.