FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Fecha fichero FTP
Posts: 485
Joined: Fri Feb 09, 2007 10:34 AM
Fecha fichero FTP
Posted: Wed Jun 24, 2009 12:09 PM

Muy buenas, tengo un código que me devuelve la hora de un determinado fichero en FTP, pero hay a veces que me devuelve un año menos, es decir, si el año es 2009 me devuelve 2008 y la fecha de Modificación del mismo es del 2009 y no hay ninguna fecha con el año 2008. ¿que puede ser?

hFTPDir = FtpFindFirstFile( ::oFTP, cMask, @cBuffer, 0, 0 )
oWin32FindData:cBuffer = cBuffer
if ! Empty( oWin32FindData:cFileName )
AAdd( aFiles, { oWin32FindData:cFileName,;
oWin32FindData:nSizeLow,;
FileTimeToDate(oWin32FindData:nLastWriteAccess),;
FileTimeToTime(oWin32FindData:nLastWriteAccess),;
oWin32FindData:nFileAttributes} )
while InternetFindNextFile( hFTPDir, @cBuffer )
oWin32FindData:cBuffer = cBuffer
AAdd( aFiles, { oWin32FindData:cFileName,;
oWin32FindData:nSizeLow,;
FileTimeToDate(oWin32FindData:nLastWriteAccess),;
FileTimeToTime(oWin32FindData:nLastWriteAccess),;
oWin32FindData:nFileAttributes } )
end
end if

Una ayuda.

Un Saludo.

Posts: 563
Joined: Sun Oct 09, 2005 07:23 PM
Re: Fecha fichero FTP
Posted: Sun Mar 29, 2015 11:56 AM

¿Cómo arreglaste esto del año menos?.
Me salelo mismo ahora. Al hacer directory en un servidor FTP, el último fichero creado lo pone con un año menos.
Pero lo miro con el FileZillay sale bien ???

Continue the discussion