Can now specify directories as detinations for copy/move.
Fixed file flag encodig issues. Implemeted the documented, but missing, support for file truncation in filelib.