Lines Matching defs:File
6 File.join( self, subpath.to_s )
177 class File
184 # File.relative_path('rel/path') # => './rel/path'
185 # File.relative_path('/some/abs/path', '/some') # => './abs/path'
186 # File.relative_path('/some/file.txt', '/some/abs/path') # => '../../file.txt'
189 File.expand_path( path.to_s ).split( File::Separator ).tap do |list|
190 if list.empty? then list << String.new( File::Separator )
191 elsif list.first.empty? then list.first.replace( File::Separator )
205 return relative_list.join( File::Separator )
215 File.join( directory, entry )
222 parent = File.dirname( path )