| Class | Webgen::Source::FileSystem::Path |
| In: |
lib/webgen/source/filesystem.rb
|
| Parent: | Webgen::Path |
A special Webgen::Path class for handling with file system paths.
Create a new object with absolute path path for the file system path fs_path.
# File lib/webgen/source/filesystem.rb, line 16
16: def initialize(path, fs_path)
17: super(path) {|mode| File.open(fs_path, mode) }
18: @fs_path = fs_path
19: WebsiteAccess.website.cache[[:fs_path, @fs_path]] = File.mtime(@fs_path)
20: @meta_info['modified_at'] = File.mtime(@fs_path)
21: end