andredamen Active Member Licensed User Longtime User Nov 8, 2021 #1 B4X: DirFileWA = rp.GetSafeDirDefaultExternal("TossWhatsapp") I want to read a file in the directory I have made with rp.GetSafeDirDefaultExternal. How can I get in that directory with ExternalStorage? B4X: Storage.Initialize (Me, "Storage") FoldersStack.Initialize UpItem.Initialize Storage.SelectDir(False) Wait For Storage_ExternalFolderAvailable FoldersStack.Clear EnterFolder(Storage.Root) With Externalstorage I can not reach this directory.
B4X: DirFileWA = rp.GetSafeDirDefaultExternal("TossWhatsapp") I want to read a file in the directory I have made with rp.GetSafeDirDefaultExternal. How can I get in that directory with ExternalStorage? B4X: Storage.Initialize (Me, "Storage") FoldersStack.Initialize UpItem.Initialize Storage.SelectDir(False) Wait For Storage_ExternalFolderAvailable FoldersStack.Clear EnterFolder(Storage.Root) With Externalstorage I can not reach this directory.
D Deleted member 103 Guest Nov 8, 2021 #2 andredamen said: B4X: DirFileWA = rp.GetSafeDirDefaultExternal("TossWhatsapp") I want to read a file in the directory I have made with rp.GetSafeDirDefaultExternal. How can I get in that directory with ExternalStorage? B4X: Storage.Initialize (Me, "Storage") FoldersStack.Initialize UpItem.Initialize Storage.SelectDir(False) Wait For Storage_ExternalFolderAvailable FoldersStack.Clear EnterFolder(Storage.Root) With Externalstorage I can not reach this directory. Click to expand... To get a file from "rp.GetSafeDirDefaultExternal" the use of "ExternalStorage" is not necessary. You can use the default functions. Upvote 0
andredamen said: B4X: DirFileWA = rp.GetSafeDirDefaultExternal("TossWhatsapp") I want to read a file in the directory I have made with rp.GetSafeDirDefaultExternal. How can I get in that directory with ExternalStorage? B4X: Storage.Initialize (Me, "Storage") FoldersStack.Initialize UpItem.Initialize Storage.SelectDir(False) Wait For Storage_ExternalFolderAvailable FoldersStack.Clear EnterFolder(Storage.Root) With Externalstorage I can not reach this directory. Click to expand... To get a file from "rp.GetSafeDirDefaultExternal" the use of "ExternalStorage" is not necessary. You can use the default functions.
andredamen Active Member Licensed User Longtime User Nov 8, 2021 #3 Thanks. I know, but I like the way ExternalStorage let the user see what is in the folder they choose. It looks that it must be possible whit ExternalStorage (Storage.SelectDir(False)) Upvote 0
Thanks. I know, but I like the way ExternalStorage let the user see what is in the folder they choose. It looks that it must be possible whit ExternalStorage (Storage.SelectDir(False))
DonManfred Expert Licensed User Longtime User Nov 8, 2021 #4 andredamen said: It looks that it must be possible whit ExternalStorage (Storage.SelectDir(False)) Click to expand... NO. This is a private path of your app. You don´t have access to this folder with the external storage class. As written you can access the files in this folder directly. What exactly are you trying to archieve? Upvote 0
andredamen said: It looks that it must be possible whit ExternalStorage (Storage.SelectDir(False)) Click to expand... NO. This is a private path of your app. You don´t have access to this folder with the external storage class. As written you can access the files in this folder directly. What exactly are you trying to archieve?
andredamen Active Member Licensed User Longtime User Nov 8, 2021 #5 I want the user to see a list of files in this folder so the can select a file the app must use. Upvote 0
DonManfred Expert Licensed User Longtime User Nov 8, 2021 #6 andredamen said: I want the user to see a list of files in this folder so the can select a file the app must use. Click to expand... What stops you to show them these files in a customlistview or whatever? You can directly access these files. Even get a list of files with Search Results www.b4x.com Upvote 0
andredamen said: I want the user to see a list of files in this folder so the can select a file the app must use. Click to expand... What stops you to show them these files in a customlistview or whatever? You can directly access these files. Even get a list of files with Search Results www.b4x.com
andredamen Active Member Licensed User Longtime User Nov 8, 2021 #7 I can, but it I thougt it is easy to program this with Storage.SelectDir(False) Upvote 0