fixen [ci skip]
diff --git a/src/library_workerfs.js b/src/library_workerfs.js
index 330ff3b..1b1784c 100644
--- a/src/library_workerfs.js
+++ b/src/library_workerfs.js
@@ -12,7 +12,7 @@
   $WORKERFS__deps: [
     '$stringToUTF8OnStack', 'wasmfs_create_jsimpl_backend',
     'wasmfs_create_file',
-    'wasmfs_get_file_index',
+    'wasmfs_get_file_by_path',
     '$wasmFS$backends',
     '$WORKERFS$files', '$PATH'
   ],
@@ -115,7 +115,7 @@
         withStackSave(() => {
           var stackPath = stringToUTF8OnStack(path);
           _wasmfs_create_file(stackPath, mode, WORKERFS.backend)
-          fileIndex = _wasmfs_get_file_index(stackPath);
+          fileIndex = _wasmfs_get_file_by_path(stackPath);
         });
         console.log('  file index', fileIndex);
         WORKERFS$files[fileIndex] = contents;