General information
Category:
Coding, syntax & commands
>>I am using FILE() with a full path and a full file name. It works great unless the file is located directly under the root. FILE('C:\upload.txt') will return .T. as long as upload.txt is in the path. It does not matter that c:\upload.txt does not exist.
>>
>Brenda,
>If you need to check for a file in a specific directory, I recommend using >ADIR(). If it returns 0, the file doesn't exist in the specified directory.
Unfortunately I do use FILE() and this is production code. I am not in a position to put in a new release. Is this known behavior of FILE()?
Guess I could have the client's mapping to the folder moved up a level so that instead of FILE('h:\upload.txt') it would be FILE('h:\ampm\upload.txt') then it would work.
Brenda
Previous
Next
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