M
MuZZy
Hi,
I'm doing a file explorer component for my app, and i can't seem to get access to my storage
cards... I have Dell Axim 50v WM2003SE with SD Card installed. Using GSFinder file explorer i
perfectly see the storage, but when i read sub folders or root "\", it just shows:
Program Files
My Documents
Temp
Windows
That's it... The code i use:
// -------- CODE START ------
DirectoryInfo di = new DirectoryInfo(@"\");
foreach (DirectoryInfo diSubFolder in di.GetDirectories())
{
// Create node for each folder under the given node
TreeNode tnSubNode = new TreeNode(Path.GetFileName(diSubFolder.FullName));
tnSubNode.Tag = diSubFolder.FullName;
tnFolder.Nodes.Add(tnSubNode);
// Now craete a dummy sub-folder for subfolder to show as expandable
TreeNode tnDummy = new TreeNode("(..processing folder..)");
tnSubNode.Nodes.Add(tnDummy);
}
// ---------------------------
Any ideas would be highly appreciated!
Thank you
Andrey
I'm doing a file explorer component for my app, and i can't seem to get access to my storage
cards... I have Dell Axim 50v WM2003SE with SD Card installed. Using GSFinder file explorer i
perfectly see the storage, but when i read sub folders or root "\", it just shows:
Program Files
My Documents
Temp
Windows
That's it... The code i use:
// -------- CODE START ------
DirectoryInfo di = new DirectoryInfo(@"\");
foreach (DirectoryInfo diSubFolder in di.GetDirectories())
{
// Create node for each folder under the given node
TreeNode tnSubNode = new TreeNode(Path.GetFileName(diSubFolder.FullName));
tnSubNode.Tag = diSubFolder.FullName;
tnFolder.Nodes.Add(tnSubNode);
// Now craete a dummy sub-folder for subfolder to show as expandable
TreeNode tnDummy = new TreeNode("(..processing folder..)");
tnSubNode.Nodes.Add(tnDummy);
}
// ---------------------------
Any ideas would be highly appreciated!
Thank you
Andrey