https://prefect.io logo
Title
e

Ethienne Marcelin

02/22/2023, 8:30 PM
Hello ! hope you're having a good day. I have a simple question, why can't we write custom Filesystems inheriting from
WritableFileSystem
? With this code
In [6]: class MyFS(WritableFileSystem):
   ...:     _basepath = ""
   ...:     def read_path(self, path):
   ...:         return
   ...:     def write_path(self, path, content):
   ...:         return
In [7]: MyFS()
I get the following error
OSError: source code not available
😢 1
n

Nate

02/22/2023, 11:37 PM
Hi @Ethienne Marcelin can you try defining your filesystem in a file instead of ipython?
e

Ethienne Marcelin

02/23/2023, 8:27 AM
It works :) thanks
👍 1