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
Referring to this change, that formed 3.0.16: dea7299
Prior to this change, if you passed a path that was a directory, you would indeed get a return of directory.
However, as the change explicitly checks that the item is a file (and not just that it exists), we can no longer use it.
Is there an alternative (ideally portable) way that can generally do the same thing here? Or would it be a valid request that the code in question could be modified to handle directory detection?
Cheers
Q
A
Flysystem Version
3.0.16
Adapter Name
Local
The text was updated successfully, but these errors were encountered:
@redbullmarky 😅 I would indeed classify this at least as exploiting a very unintentional feature, it was not designed for this use-case. If I might ask, what are you trying to accomplish by detecting a directory through a mimeType call? Perhaps I can think of another way to reach your goal. PS: I'm on holiday right now, so my response times can be varying.
Question
Referring to this change, that formed 3.0.16:
dea7299
Prior to this change, if you passed a path that was a directory, you would indeed get a return of
directory
.However, as the change explicitly checks that the item is a file (and not just that it exists), we can no longer use it.
Is there an alternative (ideally portable) way that can generally do the same thing here? Or would it be a valid request that the code in question could be modified to handle directory detection?
Cheers
The text was updated successfully, but these errors were encountered: