lib/buildmaster/cotta/physical_system.rb in BuildMaster-1.0.6 vs lib/buildmaster/cotta/physical_system.rb in BuildMaster-1.0.9
- old
+ new
@@ -33,10 +33,18 @@
def file_exists?(file_path)
return FileTest.file?(file_path)
end
+ def dir_stat(path)
+ File.stat(path)
+ end
+
+ def file_stat(path)
+ File.stat(path)
+ end
+
def list(dir_path)
Dir.entries(dir_path).find_all {|item| item != '.' && item != '..'}
end
def mkdir(dir_path)
@@ -68,7 +76,8 @@
end
def move_dir(source, target)
FileUtils.mv(source, target)
end
+
end
end
\ No newline at end of file