Fixed File::setData() logic.

Signed-off-by: SeynovAM <sejnovalexey@gmail.com>