Python-Scripting-Project

Assumptions:

  • data directory contains many files and directories
  • you are only interested in the games contained in this directory
  • each game is stored in a directory that contains the word "game"

Project Steps/Requirements:

  • Find all game directories from /data
  • Create a new /games directory
  • Copy and remove the "game" suffix of all games into the /games directory
  • Create a .json file with the information about the games

run code:

python game_data.py data [target name file]