Class: Rake::FtpFile

### Home Classes Methods

### In Files

- lib/rake/contrib/ftptools.rb

### Parent

Object

### Methods

- ::date
- ::new
- ::time
- #directory?
- #mode
- #path
- #symlink?

### Files

- MIT-LICENSE
- README.rdoc
- TODO
- command_line_usage.rdoc
- glossary.rdoc
- proto_rake.rdoc
- rakefile.rdoc
- rational.rdoc
- rake-0.4.14.rdoc
- rake-0.4.15.rdoc
- rake-0.5.0.rdoc
- rake-0.5.3.rdoc
- rake-0.5.4.rdoc
- rake-0.6.0.rdoc
- rake-0.7.0.rdoc
- rake-0.7.1.rdoc
- rake-0.7.2.rdoc
- rake-0.7.3.rdoc
- rake-0.8.0.rdoc
- rake-0.8.4.rdoc
- rake-0.8.5.rdoc
- rake-0.8.6.rdoc
- rake-0.8.7.rdoc

### Class/Module Index

Quicksearch

- Rake
- Rake::AltSystem
- Rake::Application
- Rake::Backtrace
- Rake::Cloneable
- Rake::CompositePublisher
- Rake::DSL
- Rake::DefaultLoader
- Rake::EarlyTime
- Rake::FileCreationTask
- Rake::FileList
- Rake::FileTask
- Rake::FileUtilsExt
- Rake::FtpFile
- Rake::FtpUploader
- Rake::InvocationChain
- Rake::InvocationChain::EmptyInvocationChain
- Rake::InvocationExceptionMixin
- Rake::MakefileLoader
- Rake::MultiTask
- Rake::NameSpace
- Rake::PackageTask
- Rake::PseudoStatus
- Rake::RubyForgePublisher
- Rake::RuleRecursionOverflowError
- Rake::SshDirPublisher
- Rake::SshFilePublisher
- Rake::SshFreshDirPublisher
- Rake::Task
- Rake::TaskArgumentError
- Rake::TaskArguments
- Rake::TaskLib
- Rake::TaskManager
- Rake::TestTask
- Rake::TraceOutput
- Rake::Win32
- Rake::Win32::Win32HomeError
- CompositePublisher
- FileUtils
- Module
- Object
- SshDirPublisher
- SshFilePublisher
- SshFreshDirPublisher
- String
- Time

No matching classes.

# Rake::FtpFile

Note: Not released for general use.

### Attributes

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

### Public Class Methods

date() click to toggle source

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

new(path, entry) click to toggle source

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

time() click to toggle source

    # File lib/rake/contrib/ftptools.rb, line 21
    def self.time
      @time_class ||= Time
    end

### Public Instance Methods

directory?() click to toggle source

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

mode() click to toggle source

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

path() click to toggle source

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

symlink?() click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.