R base has a Filter function for filtering lists and vectors.
With paths as it is defined in FJCC's post,
paths <- list(c("A", "S", "D"), c("Z", "X", "C", "V"), c("W"), c("W", "E", "R", "T"))
Filter(function(x) length(x) == 4, paths)
See ?Filter for details.