Help to convert a code to D

Olivier Pisano olivier.pisano at laposte.net
Mon Aug 26 06:19:58 PDT 2013


Hi Alexandre, welcome aboard !

This kind of question should ideally be asked in the d.learn 
forum, not here. Anyway, to create directories, you can use 
std.file mkdir and mkdirRecurse function. To get file 
information, there is the getAttributes function in the same 
module.

Note that for builing path names, you can use std.path buildPath 
function, which is portable between Windows and UNIX :

string DestDir = buildPath(DirReceb ~ MesesDoAno[mes - 1], strdt, 
fi.Name);

Cheers,

Olivier


More information about the Digitalmars-d mailing list