module build.util.file

Function for manipulating files and paths.

Code Map

//! Function for manipulating files and paths.
module build.util.file;


fn modifiedMoreRecentlyThan(a: string, b: string) bool { }
fn getTimes(name: string, access: u64, modified: u64) { }
//! Replaces @oldPrefix and @oldSuffix with @newPrefix and @newSuffix.
fn replacePrefixAndSuffix(name: string, oldPrefix: string, newPrefix: string, oldSuffix: string, newSuffix: string) string { }
fn modifiedMoreRecentlyThan(a: string, b: string) bool

Return

true if the file a has been modified more recently than b.

fn replacePrefixAndSuffix(name: string, oldPrefix: string, newPrefix: string, oldSuffix: string, newSuffix: string) string

Replaces @oldPrefix and @oldSuffix with @newPrefix and @newSuffix.

Assumes that name starts and ends with @oldPrefix, @oldSuffix.