Class | Rake::FtpFile
In: | lib/rake/contrib/ftptools.rb
Parent: | Object

Note: Not released for general use.

### Methods

date directory? mode new path symlink?

### Attributes

group | [R] |
name | [R] |
owner | [R] |
size | [R] |
time | [R] |

### Public Class methods

date()

[Source]

        # File lib/rake/contrib/ftptools.rb, line 19
    19:     def self.date
    20:       @date_class ||= Date
    21:     end

new(path, entry)

[Source]

        # File lib/rake/contrib/ftptools.rb, line 23
    23:     def initialize(path, entry)
    24:       @path = path
    25:       @mode, line, @owner, @group, size, d1, d2, d3, @name = entry.split(' ')
    26:       @size = size.to_i
    27:       @time = determine_time(d1, d2, d3)
    28:     end

### Public Instance methods

directory?()

[Source]

        # File lib/rake/contrib/ftptools.rb, line 34
    34:     def directory?
    35:       @mode[0] == ?d
    36:     end

mode()

[Source]

        # File lib/rake/contrib/ftptools.rb, line 38
    38:     def mode
    39:       parse_mode(@mode)
    40:     end

path()

[Source]

        # File lib/rake/contrib/ftptools.rb, line 30
    30:     def path
    31:       File.join(@path, @name)
    32:     end

symlink?()

[Source]

        # File lib/rake/contrib/ftptools.rb, line 42
    42:     def symlink?
    43:       @mode[0] == ?l
    44:     end

[Validate]