Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi TIDFTP - Erstell Datum einer Datei auslesen (auf FTP)? (https://www.delphipraxis.net/70028-tidftp-erstell-datum-einer-datei-auslesen-auf-ftp.html)

fLeTCHeR 23. Mai 2006 19:59


TIDFTP - Erstell Datum einer Datei auslesen (auf FTP)?
 
hallo,

gibt es eine Möglichkeit, das Datum, wann eine Datei erstellt oder auf dem FTP abgelegt wurde, die auf einem FTP- Server liegt, auszulesen?
Vergleichbar mit der Dateigroesse

Delphi-Quellcode:
 FTP.Size
Vielen Dank für Eure Hilfe

gruesse fLeTCHeR

Klaus01 24. Mai 2006 06:31

Re: TIDFTP - Erstell Datum einer Datei auslesen (auf FTP)?
 
nö, nicht direkt, aber Du kannst es Dir aus dem Ergebnis von List herausfieseln.

Ein Auszug aus der Hilfe zu TidFTP.list
Zitat:

Gets a list of files and directories on the FTP server.

procedure List(ADest: TStrings; const ASpecifier: string; const ADetails: boolean);

Parameters

ADest: TStrings

List for files and directories in the current directory.

const ASpecifier: string = ''

File mask for the listing. Default value is ''.

const ADetails: boolean = true

Include file details. Default value is True.

Description

List is a procedure used to request a list of files or directories in the current directory on the FTP server.

ADest is the TStringList used to store the information requested.

ASpecifier is a String that contains a mask indicating the files and/or directories to be included in the listing. ASpecifier can contain common wildcard characters like '*' and '?'. Some useful masks include:

*.* - All files in the current directory.
* - All directory entries in the current directory.
*. - All files regardless of extension in the current directory.
A??.txt - All text files that have a 3-character name starting with 'A'.


ADetails is a Boolean that indicates if the list should contain details about the files and directories that match the mask in ASpecifier.

When ADetails is False, only the file or directory name is returned in the ADest string list.

When ADetails is True, List can return FTP server-dependent details including the file size, date modified, and file permissions for the Owner, Group, and User.

An application must be able to parse the detailed list format based on the FTP server type identified in SystemDesc.

Grüße
Klaus

fLeTCHeR 24. Mai 2006 07:14

Re: TIDFTP - Erstell Datum einer Datei auslesen (auf FTP)?
 
:wall: na dann werd ich mal anfangen zu fieseln... danke für die antwort.

gruß fLeTCHeR

marabu 24. Mai 2006 08:09

Re: TIDFTP - Erstell Datum einer Datei auslesen (auf FTP)?
 
Es könnte schwierig werden. FTP liefert in der Regel nur das ModifiedDate. Beim Fieseln könnte das hier helfen: klick

Grüße vom marabu


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:58 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz