Код: Выделить всё
if not FileExists(Result) then exit;а должно быть
Код: Выделить всё
if not (FileExists(Result) or DirectoryExists(Result)) then exit;Модератор: Модераторы
Код: Выделить всё
if not FileExists(Result) then exit;Код: Выделить всё
if not (FileExists(Result) or DirectoryExists(Result)) then exit;