[pywin32-checkins] pywin32/win32/src win32file.i,1.52,1.53
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2006-03-15 04:30:20
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15090/win32/src Modified Files: win32file.i Log Message: expand autoduck GetFileAttributes(W) comments and link to win32api.GetFileAttributes Index: win32file.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32file.i,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** win32file.i 27 Feb 2006 10:46:35 -0000 1.52 --- win32file.i 15 Mar 2006 04:30:17 -0000 1.53 *************** *** 663,670 **** --- 663,679 ---- // @pyswig int|GetFileAttributes|Determines a files attributes. + // @comm The win32file module exposes <om win32file.GetFileAttributes> and + // <om win32file.GetFileAttributesW> separately - both functions will accept + // either strings or Unicode objects but will always call the named function. + // This is different than <om win32api.GetFileAttributes>, which only exposes + // one Python function and automatically calls the appropriate win32 function + // based on the type of the filename param. DWORD GetFileAttributes( TCHAR *fileName); // @pyparm <o PyUnicode>|fileName||Name of the file to retrieve attributes for. // @pyswig int|GetFileAttributesW|Determines a files attributes (NT/2000 Unicode specific version). + // @comm Note that <om win32api.GetFileAttributes> will automatically call + // GetFileAttributesW when passed a unicode filename param. See <om win32file.GetFileAttributes> + // and <om win32api.GetFileAttributes> for more. DWORD GetFileAttributesW( WCHAR *fileName); // @pyparm <o PyUnicode>|fileName||Name of the file to retrieve attributes for. *************** *** 777,781 **** return _DoGetFileAttributesEx(self, args, FALSE); } ! // @pyswig tuple|GetFileAttributesEx|Retrieves attributes for a specified file or directory using Unicode paths. // @comm See <om win32file.GetFileAttributesEx> for a description of the arguments and return type. static PyObject *PyGetFileAttributesExW(PyObject *self, PyObject *args) --- 786,790 ---- return _DoGetFileAttributesEx(self, args, FALSE); } ! // @pyswig tuple|GetFileAttributesExW|Retrieves attributes for a specified file or directory using Unicode paths. // @comm See <om win32file.GetFileAttributesEx> for a description of the arguments and return type. static PyObject *PyGetFileAttributesExW(PyObject *self, PyObject *args) |