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
DirectoryNotFoundException: Could not find a part of the path "/storage/emulated/0/Android/data/com.techavtra.GoogleLogin/files/NGallery/02/05/2024_17:59:47.png".
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00000] in <00000000000000000000000000000000>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <00000000000000000000000000000000>:0
at System.IO.File.InternalWriteAllBytes (System.String path, System.Byte[] bytes) [0x00000] in <00000000000000000000000000000000>:0
at NativeGallery.SaveToGallery (System.Byte[] mediaBytes, System.String album, System.String filename, NativeGallery+MediaType mediaType, NativeGallery+MediaSaveCallback callback) [0x00000] in <00000000000000000000000000000000>:0
at Amar.TakePicture+<TakeScreenshotAnd
Reproduction steps
Getting this error with Android 12 devices only
Platform specs
Please provide the following info if this is a Unity 3D repository.
It looks like the filename is 02/05/2024_17:59:47.png which is interpreted as 2024_17:59:47.png inside the 05 folder which is inside the 02 folder. The / character is actually forbidden in filepaths for this reason so I'd recommend replacing that character with dot ( . ) or underline ( _ ) before passing it to NativeGallery.
Description of the bug
DirectoryNotFoundException: Could not find a part of the path "/storage/emulated/0/Android/data/com.techavtra.GoogleLogin/files/NGallery/02/05/2024_17:59:47.png".
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00000] in <00000000000000000000000000000000>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <00000000000000000000000000000000>:0
at System.IO.File.InternalWriteAllBytes (System.String path, System.Byte[] bytes) [0x00000] in <00000000000000000000000000000000>:0
at NativeGallery.SaveToGallery (System.Byte[] mediaBytes, System.String album, System.String filename, NativeGallery+MediaType mediaType, NativeGallery+MediaSaveCallback callback) [0x00000] in <00000000000000000000000000000000>:0
at Amar.TakePicture+<TakeScreenshotAnd
Reproduction steps
Getting this error with Android 12 devices only
Platform specs
Please provide the following info if this is a Unity 3D repository.
Additional info
https://learn.microsoft.com/en-us/answers/questions/1194003/storage-emulated-0-batchfiles-system-unauthorizeda?page=1
The text was updated successfully, but these errors were encountered: