diff --git a/docs/content/en/docs/platforms.md b/docs/content/en/docs/platforms.md index 9a8b3bc9..85450cad 100644 --- a/docs/content/en/docs/platforms.md +++ b/docs/content/en/docs/platforms.md @@ -100,10 +100,10 @@ void main() { DynamicLibrary _openOnLinux() { final script = File(Platform.script.toFilePath()); - final libraryNextToScript = File('${script.path}/sqlite3.so'); + final libraryNextToScript = File('${script.parent.path}/sqlite3.so'); return DynamicLibrary.open(libraryNextToScript.path); } // _openOnWindows could be implemented similarly by opening `sqlite3.dll` ``` -Be sure to use moor _after_ you set the platform-specific overrides. \ No newline at end of file +Be sure to use moor _after_ you set the platform-specific overrides.