watson-ruby
watson-ruby copied to clipboard
Not sure whether to make check* methods return FP [lib/watson/fs.rb]
filename : lib/watson/fs.rb line # : 10 tag : todo md5 : d4a7ed9ab5de76f7b8183e60e49d0f29
# [todo] - Not sure whether to make check* methods return FP
# Makes it nice to get it returned and use it but
# not sure how to deal with closing the FP after
# Currently just close inside
# Include for debug_print
include Watson
###########################################################
# Check if file exists and can be opened
def check_file(file)
# Identify method entry
debug_print "#{ self } : #{ __method__ }\n"
# Error check for input
if file.length == 0