diff --git a/src/puter-js/src/modules/FileSystem/index.js b/src/puter-js/src/modules/FileSystem/index.js index 1360f3f08..300c2b7fb 100644 --- a/src/puter-js/src/modules/FileSystem/index.js +++ b/src/puter-js/src/modules/FileSystem/index.js @@ -16,7 +16,7 @@ import symlink from './operations/symlink.js'; import deleteFSEntry from "./operations/deleteFSEntry.js"; import { AdvancedBase } from '../../../../putility/index.js'; import FSItem from '../FSItem.js'; -import getReadUrl from './operations/getReadUrl.js'; +import getReadURL from './operations/getReadUrl.js'; export class PuterJSFileSystemModule extends AdvancedBase { @@ -33,7 +33,7 @@ export class PuterJSFileSystemModule extends AdvancedBase { write = write; sign = sign; symlink = symlink; - getReadUrl = getReadUrl; + getReadURL = getReadURL; FSItem = FSItem diff --git a/src/puter-js/src/modules/FileSystem/operations/getReadUrl.js b/src/puter-js/src/modules/FileSystem/operations/getReadUrl.js index d827d0a31..3bc9f3a58 100644 --- a/src/puter-js/src/modules/FileSystem/operations/getReadUrl.js +++ b/src/puter-js/src/modules/FileSystem/operations/getReadUrl.js @@ -1,7 +1,7 @@ import * as utils from '../../../lib/utils.js'; import stat from "./stat.js"; -const getReadUrl = async function (path, expiresIn = "24h") { +const getReadURL = async function (path, expiresIn = "24h") { return new Promise(async (resolve, reject) => { // If auth token is not provided and we are in the web environment, // try to authenticate with Puter @@ -39,4 +39,4 @@ const getReadUrl = async function (path, expiresIn = "24h") { }); } -export default getReadUrl; +export default getReadURL;