Skip to content

Instantly share code, notes, and snippets.

@OttoHatt
OttoHatt / MemoryStoreUtils2.lua
Created November 1, 2023 10:42
Drop-in Nevermore Session Locked Store (Not battle tested)
--[=[
@class MemoryStoreUtils2
Utils for working with MemoryStore.
]=]
local require = require(script.Parent.loader).load(script)
local DEBUG_MAP = false
local fs = require("bee.filesystem")
local fsu = require("fs-utility")
local furi = require("file-uri")
local workspace = require("workspace")
local foundFileCache = {}
local function relativePathToDotPath(relPath)
-- Convert posix path to dots, and remove file extension.
return tostring(relPath):gsub(".lua", ""):gsub("\\", "."):gsub("/", ".")