You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@geoffjukes : are you sure you are using the latest version of Pyfilesystem2? I checked fs.SubFS and it does have writetext. writetext is normally supported since v2.2.0.
Can you give me some code to reproduce? Trying to call writetext on a SubFS works without issue on v2.4.11 as far as I can tell:
importfsprint(fs.__version__) # v2.4.11withfs.open_fs("temp://") astmp:
sub=tmp.makedir("subdir")
print(type(sub)) # <class 'fs.subfs.SubFS'>sub.writetext("test", "this is a test")
print(sub.readtext("test")) # this is a test
@althonos It took a while to locate the project that I had the issue in, and then the Git history for the requirements.txt and the problematic file.
It looks like, at the time of writing the ticket, the impacted project was running v2.1.0. I updated to 2.4.11 after reporting the issue, which (as you pointed out) is now fixed.
Activity
althonos commentedon Sep 19, 2020
@geoffjukes : are you sure you are using the latest version of Pyfilesystem2? I checked
fs.SubFSand it does havewritetext.writetextis normally supported sincev2.2.0.geoffjukes commentedon Sep 19, 2020
@althonos Yup, using 2.4.11
althonos commentedon Sep 19, 2020
Can you give me some code to reproduce? Trying to call
writetexton aSubFSworks without issue onv2.4.11as far as I can tell:geoffjukes commentedon Sep 19, 2020
@althonos It took a while to locate the project that I had the issue in, and then the Git history for the requirements.txt and the problematic file.
It looks like, at the time of writing the ticket, the impacted project was running v2.1.0. I updated to 2.4.11 after reporting the issue, which (as you pointed out) is now fixed.
Apologies for the wild goose chase!
althonos commentedon Sep 19, 2020
No problem!