Mercurial > projects > mde
diff mde/setup/paths.d @ 81:d8fccaa45d5f
Moved file IO code from mde/mergetag to mde/file[/mergetag] and changed how some errors are caught.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Fri, 29 Aug 2008 11:59:43 +0100 |
parents | 79a1809421aa |
children | 56c0ddd90193 |
line wrap: on
line diff
--- a/mde/setup/paths.d Thu Aug 07 11:25:27 2008 +0100 +++ b/mde/setup/paths.d Fri Aug 29 11:59:43 2008 +0100 @@ -32,10 +32,10 @@ module mde.setup.paths; import mde.exception; -import mde.mergetag.Reader; -import mde.mergetag.Writer; -import mde.mergetag.DataSet; -import mde.mergetag.exception; +import mde.file.mergetag.Reader; +import mde.file.mergetag.Writer; +import mde.file.mergetag.DataSet; +import mde.file.mergetag.exception; import tango.io.Console; import tango.io.FilePath; @@ -105,15 +105,6 @@ return ret; } - /** Check whether the given file exists under any path with either .mtt or .mtb suffix. */ - bool exists (char[] file) { - for (uint i = 0; i < pathsLen; ++i) { - if (FilePath (paths[i]~file~".mtt").exists) return true; - if (FilePath (paths[i]~file~".mtb").exists) return true; - } - return false; - } - /// Print all paths found. static void printPaths () { Cout ("Data paths found:");