Implementation of save file in a monitored folder. Management of device Id.