Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1325 (closed enhancement: invalid)

Opened 1 month ago

Last modified 1 month ago

Let tango.io.Path have more convinient functions to avoid FilePath instances.

Reported by: keinfarbton Assigned to: kris
Priority: normal Milestone: 0.99.8
Component: Tango Version: 0.99.7 Dominik
Keywords: Cc:

Description

For example, if i need a part of a filename, i need this code:

scope p = new FilePath( filename );
auto result = p.ext;

The p instance seems to be unneeded object creation. I would prefer a simple function call like:

auto result = FS.getExt( filename );

And so i would like to have many of the functions available from FilePath? in Path.

Change History

10/13/08 17:29:54 changed by kris

  • status changed from new to closed.
  • resolution set to invalid.

It's already there, Frank:

auto parts = Path.parse("my file path");
auto ext = parts.ext;
etc