Opened 11 years ago

Last modified 11 years ago

#6018 assigned Feature Requests

Add touch() and create_file() functions

Reported by: Beman Dawes Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.47.0 Severity: Optimization
Keywords: Cc:

Description

A function with the functionality of the POSIX touch utility would be a great convenience. It meets both the need to update times and the need to create a file.

OTOH, it is a bit of a mishmash of logically separate features. Maybe what is really needed is a create_file() function that errors if the file already exists and a touch() function that errors if the file doesn't exist.

Alternatively, both could return a bool, true if successful, and not consider it an error if the file, respectfully, already/doesn't exist.

Change History (1)

comment:1 by Beman Dawes, 11 years ago

Status: newassigned
Note: See TracTickets for help on using tickets.