![]() |
Re: TidFTP - Kurrioses ListDirectory
Zitat:
|
Re: TidFTPServer - Kurrioses ListDirectory
Oha ... es ist nicht meine Nacht. :cry:
Ich muss ins Bett ... |
Re: TidFTP - Kurrioses ListDirectory - erledigt
Liste der Anhänge anzeigen (Anzahl: 1)
Zitat:
Jup, habe das gefühl der IE kommt mit dem ModifiedDate nicht zurecht, der nimmt dieses welches nämlich als Filesize. Wie auch zusehen ist, ist UserPermition '???' was aber verständlich ist da, breakpoint hier ist:
Delphi-Quellcode:
Auskommetierung takes no effect.
procedure Tmain.ftpServerListDirectory(ASender: TIdFTPServerThread;
const APath: string; ADirectoryListing: TIdFTPListItems); var LFTPItem : TIdFTPListItem; SR : TSearchRec; path : string; begin path := nolastslash(APath); serverLog.Lines.Add('APath = '+ path); serverLog.Lines.Add('Files:'); if FindFirst(path + '*.*', faAnyFile - faHidden - faSysFile, SR) = 0 then begin try repeat if ((SR.Name <> '.') and (SR.Name <> '..')) then begin LFTPItem := ADirectoryListing.Add; LFTPItem.FileName := SR.Name; LFTPItem.Size := SR.Size; LFTPItem.OwnerName := ASender.Username; LFTPItem.GroupName := '[ ALL FTP-User ]'; //LFTPItem.ModifiedDate := FileDateToDateTime(SR.Time); LFTPItem.OwnerPermissions := 'rwx'; LFTPItem.GroupPermissions := 'rwx'; // BEAKPOINT LFTPItem.UserPermissions := 'rwx'; if SR.Attr = faDirectory then LFTPItem.ItemType := ditDirectory else LFTPItem.ItemType := ditFile; serverLog.Lines.Add('- [' + SR.Name + ']'); end; until FindNext(SR) <> 0; finally FindClose(SR); end; end; //SetCurrentDir(path + '\..'); end; [Update] Problem gelöst, der Groupname war dran schuld! Änderung zu "ftpusers" hat gereicht und alles ist perfekt! Danke nochmal an alle! |
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:36 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz