G
Greg Willits
I want to use Ruby to periodically move files out of an FTP upload
folder to another location. Before I move any one file, I need to know
that it is not in the middle of being uploaded.
Other than doing something really barbaric like check the file size,
wait some time period and check the size again, I can't figure out how
Ruby would know if a file not in use by Ruby itself is "busy."
Is there something in Ruby to do this, or do I use some OS-level
command?
OS X 10.5. Ruby 1.8.
Thanks for any suggestions.
-- gw
folder to another location. Before I move any one file, I need to know
that it is not in the middle of being uploaded.
Other than doing something really barbaric like check the file size,
wait some time period and check the size again, I can't figure out how
Ruby would know if a file not in use by Ruby itself is "busy."
Is there something in Ruby to do this, or do I use some OS-level
command?
OS X 10.5. Ruby 1.8.
Thanks for any suggestions.
-- gw