type
TFileState = ( fsMissing, fsEmpty, fsSomething );
function GetFileState(s : string) : TFileState;
var
sr : TSearchRec;
err : integer;
begin
err := FindFirst(s, faAnyFile and not faDirectory, sr);
if err <> 0
then Result := fsMissing
else if sr.Size = 0
then Result := fsEmpty
else Result := fsSomething;
FindClose(sr);
end;