# File lib/puppet/network/handler/fileserver.rb, line 542 542: def path=(path) 543: # FIXME: For now, just don't validate paths with replacement 544: # patterns in them. 545: if path =~ /%./ 546: # Mark that we're expandable. 547: @expandable = true 548: else 549: raise FileServerError, "#{path} does not exist" unless FileTest.exists?(path) 550: raise FileServerError, "#{path} is not a directory" unless FileTest.directory?(path) 551: raise FileServerError, "#{path} is not readable" unless FileTest.readable?(path) 552: @expandable = false 553: end 554: @path = path 555: end