create dir before creating file..