Centralized some generic file system operations in CbFile class