This project is read-only.

help accessing child folders

Jul 26, 2011 at 3:33 AM

Let’s say I have this file structure

Root

>music

 >>music1

 >>music2

>public folder

 

How can I get to the music file, I can read fine the root directories using the examples provided in the source code

Note I am using windows phone 7.1

This is the code I am using

           Deployment.Current.Dispatcher.BeginInvoke(

               () =>

                   {

                       this.PageTitle.Text = "Root";

                       this.dataSource.Clear();

 

                       foreach (ICloudFileSystemEntry entry in l)

                       {

                            if (entry is ICloudDirectoryEntry)

                           {

                               Debug.WriteLine("Found Directory: {0}", entry.Name);

                           }

                           else

                           {

                               Debug.WriteLine("Found File: {0}", entry.Name);

                           }

 

                           this.dataSource.Add(new Folder { Name = entry.Name });

                       }

 

                       this.lstItems.ItemsSource = this.dataSource;

                   });

 

Any help would be really appreciated

HP

Jul 27, 2011 at 1:36 PM
Hi,

currently we have issues in 1.1 with downloading and uploading files. We are working on it, sorry!

Dirk


2011/7/26 hidroela <notifications@codeplex.com>

From: hidroela

Let’s say I have this file structure

Root

>music

>>music1

>>music2

>public folder

How can I get to the music file, I can read fine the root directories using the examples provided in the source code

Note I am using windows phone 7.1

This is the code I am using

Deployment.Current.Dispatcher.BeginInvoke(

() =>

{

this.PageTitle.Text = "Root";

this.dataSource.Clear();

foreach (ICloudFileSystemEntry entry in l)

{

if (entry is ICloudDirectoryEntry)

{

Debug.WriteLine("Found Directory: {0}", entry.Name);

}

else

{

Debug.WriteLine("Found File: {0}", entry.Name);

}

this.dataSource.Add(new Folder { Name = entry.Name });

}

this.lstItems.ItemsSource = this.dataSource;

});

Any help would be really appreciated

HP

Read the full discussion online.

To add a post to this discussion, reply to this email (sharpbox@discussions.codeplex.com)

To start a new discussion for this project, email sharpbox@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jul 27, 2011 at 1:44 PM

Well my problems right now is browsing
I don't know how to get to folder other than the one on the root directory
Thanks

Jul 30, 2011 at 9:43 AM
Hi,

just enumerate over the entry (if it is a directory entry) as well. You should do this in the UI handler, so if someone touches the directory download the childs of this folder again.

Dirk


2011/7/27 hidroela <notifications@codeplex.com>

From: hidroela

Well my problems right now is browsing
I don't know how to get to folder other than the one on the root directory
Thanks

Read the full discussion online.

To add a post to this discussion, reply to this email (sharpbox@discussions.codeplex.com)

To start a new discussion for this project, email sharpbox@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jul 30, 2011 at 1:40 PM

thanks very much for your tip i will try to figure out and report back

have a nice day/night 

Jul 30, 2011 at 3:06 PM

unfortunate i cant figure out how to do the enumerate over the entry 

my only hope is that some body in here is willing to share those to line of code that for my lack of knowledge i can not put together

thanks

best regards

HP 

Jul 30, 2011 at 9:22 PM
Hi,

just try this if you are on Windows

static void EnumDirectoryEntry(ICloudDirectoryEntry entry)
{
foreach (ICloudFileSystemEntry fs in entry)
{
Console.WriteLine(fs.Name);

if (fs is ICloudDirectoryEntry)
EnumDirectoryEntry(fs as ICloudDirectoryEntry);
}
}

for Windows Phone 7 please use the async api with BeginGetChildsRequest when someone clicks on the item

Does this help?

Dirk


2011/7/30 hidroela <notifications@codeplex.com>

From: hidroela

unfortunate i cant figure out how to do the enumerate over the entry

my only hope is that some body in here is willing to share those to line of code that for my lack of knowledge i can not put together

thanks

best regards

HP

Read the full discussion online.

To add a post to this discussion, reply to this email (sharpbox@discussions.codeplex.com)

To start a new discussion for this project, email sharpbox@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jul 31, 2011 at 5:22 AM

i am on windows phone 7 this is a sample project http://www.wp7ringtone.com/test/DropBox1.rar

that i am working on it if you can take a look at it  i would appreciated 

thanks

bet regards

HP