General information
Category:
Internet applications
Title:
FTP Class problem and Fix...
For those of you who have downloaded the FTP class I wrote, a user notified me of a problem. When a file is downloaded from a server, the file attributes are not right. After looking into the problem, I discovered I messed up with the File Attribute Values I used.
So if you are using the FTP, please insert the following defines in the FTP.PRG file and **remove** the old defines.
#define FILE_ATTRIBUTE_READONLY 1
#define FILE_ATTRIBUTE_HIDDEN 2
#define FILE_ATTRIBUTE_SYSTEM 4
#define FILE_ATTRIBUTE_DIRECTORY 16
#define FILE_ATTRIBUTE_ARCHIVE 32
#define FILE_ATTRIBUTE_ENCRYPTED 64
#define FILE_ATTRIBUTE_NORMAL 128
#define FILE_ATTRIBUTE_TEMPORARY 256
#define FILE_ATTRIBUTE_SPARSE_FILE 512
#define FILE_ATTRIBUTE_REPARSE_POINT 1024
#define FILE_ATTRIBUTE_COMPRESSED 2048
#define FILE_ATTRIBUTE_OFFLINE 4096
I will also get an updated version up to the server here.
Rob.
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only