|
|
@ -71,6 +71,11 @@ module Docs
|
|
|
|
file_mtime(path) if file_exist?(path)
|
|
|
|
file_mtime(path) if file_exist?(path)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def size(path)
|
|
|
|
|
|
|
|
path = expand_path(path)
|
|
|
|
|
|
|
|
file_size(path) if file_exist?(path)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def each(&block)
|
|
|
|
def each(&block)
|
|
|
|
list_files(working_path, &block)
|
|
|
|
list_files(working_path, &block)
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -109,6 +114,10 @@ module Docs
|
|
|
|
raise NotImplementedError
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def file_size(path)
|
|
|
|
|
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def list_files(path, &block)
|
|
|
|
def list_files(path, &block)
|
|
|
|
raise NotImplementedError
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
end
|
|
|
|