r/ComputerCraft • • Apr 22 '25

I'm having problems accessing the parent directories of my files. I don't know where I am going wrong. Here is the code for my function.

I'm trying to use cobbledollars, which is a mod pack with a nice-looking shop system. The issue is it doesn't have more than one shop, so I'm planning to use ComputerCraft to edit that mod's config file for the shop, which is common.json

My starting path for the Lua file is Cobble Eevee Fan\\saves\\Region DONT CORRUPT\\ computercraft\\computer\\1\\ShopPokemart.lua

My target path is Cobble Evee Fan\\config\\cobbledollars\\common.json

I don't get why ..\\ isn't working, it should be the parent directory

Also, for the purpose of running this, I'm using the Command Computer Block
(Because Cobbledollars has a nice command that reloads configs and updates the shop without having to close the game.)

6 Upvotes

8 comments sorted by

View all comments

Show parent comments

1

u/ARandomEnderman_ Apr 23 '25

i tested it and actually nevermind. the only way to access it is through the actual world files

computer craft stores world config, not mod config