From: Gert D. <dri...@us...> - 2004-03-18 19:15:05
|
Update of /cvsroot/nant/nant/src/NAnt.Core/Functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11529 Modified Files: DirectoryFunctions.cs Log Message: added function for getting the current (working) directory Index: DirectoryFunctions.cs =================================================================== RCS file: /cvsroot/nant/nant/src/NAnt.Core/Functions/DirectoryFunctions.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DirectoryFunctions.cs 29 Dec 2003 19:56:21 -0000 1.3 --- DirectoryFunctions.cs 18 Mar 2004 19:05:25 -0000 1.4 *************** *** 61,64 **** --- 61,76 ---- /// <summary> + /// Gets the current working directory. + /// </summary> + /// <value> + /// A <see cref="string" /> containing the path of the current working + /// directory. + /// </value> + [Function("get-current-directory")] + public static string GetCurrentDirectory() { + return Directory.GetCurrentDirectory(); + } + + /// <summary> /// Returns the date and time the specified directory was last written to. /// </summary> |