updating file in Inventory directory with proper changes