FS plugin for Windows Live SkyDrive

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

ghollosy
Junior Member
Junior Member
Posts: 13
Joined: 2009-06-17, 13:54 UTC
Location: Hungary

FS plugin for Windows Live SkyDrive

Post by *ghollosy »

Hi,

I'd like to announce you a new FS plugin, SkyDriveWfx, which makes much easier for Windows Live users to manage (upload and download) their files and folders from SkyDrive online storage.
If you're interested in, any other details, source code and release package (binaries) can be found on CodePlex, look for project "Total Commander SkyDrive File System Plugin (.wfx)" .

Regards,
Gabor

P.s: any kind of feedback is appreciated on codeplex.
Last edited by ghollosy on 2009-07-23, 10:19 UTC, edited 1 time in total.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2ghollosy
Wow! It is very nice to see that.

Works slow due to .NET but it's acceptable to me because there are nothing else for SkyDrive yet (or am I wrong?).

But…

1. Trying to view most of my folders gives:
error wrote:HgCo.WindowsLive.SkyDrive.OperationFailedException: Niedozwolone znaki w ścieżce. ---> System.ArgumentException: Niedozwolone znaki w ścieżce.
w System.IO.Path.CheckInvalidPathChars(String path)
w System.IO.Path.GetExtension(String path)
w HgCo.WindowsLive.SkyDrive.SkyDriveWebClient.ParseSubWebFolderViewDetails(WebFolderInfo webFolderParent, HtmlDocument responseDocument)
w HgCo.WindowsLive.SkyDrive.SkyDriveWebClient.ListSubWebFolderItems(WebFolderInfo webFolderParent, WebFolderViewType viewType)
--- Koniec śladu stosu wyjątków wewnętrznych ---
w HgCo.WindowsLive.SkyDrive.SkyDriveWebClient.ListSubWebFolderItems(WebFolderInfo webFolderParent, WebFolderViewType viewType)
w HgCo.WindowsLive.SkyDrive.SkyDriveWebClient.ListSubWebFolderItems(WebFolderInfo webFolderParent)
w HgCo.WindowsLive.SkyDrive.TotalCommander.Plugins.SkyDriveWfx.FindFirst(String Path, FindData& FindData)
What means in general: "Forbidden characters in path name". Unfortunately, I don't even think I have non-latin set anywhere there.

2. There is no possibility to change description of the resource or add comments to it.

3. No possibility to change resources status (public / private),

4. No "Disconnect" button on the top of TC, so connection status is unknown when we switch to other tab or directory. Will it log me out automatically or what?

5. Please provide an option to save username. Probably TC 7.5 will allow to store password in secure way but I am not sure about it.



After all: great work. I hope it will get better soon :)
Last edited by fenix_productions on 2009-06-17, 20:05 UTC, edited 1 time in total.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50840
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

1. The plugin will probably need to use Unicode
5. Yes, plugins can use the secure password store now with TC 7.5! See my SFTP plugin source for an example on how to do it.
Author of Total Commander
https://www.ghisler.com
ghollosy
Junior Member
Junior Member
Posts: 13
Joined: 2009-06-17, 13:54 UTC
Location: Hungary

Post by *ghollosy »

Hi,

First of all, thanks for the feedback. It seems that it was worth to develop this SkyDrive plugin ...
Lets see my answers to your suggestions, problems:

0. Yes, it's slow, I know. To make things clear, it's not due to the .Net framework, but rather the fact that there is no official, real API for SkyDrive available at the moment. The only way to communicate to SkyDrive is via requesting and posting back HTML documents!!, like a web browser (this is what SkyDriveWebClient is doing, btw also developed by me): e.g. the login operation takes about 20 HTTP request-responses!

1. By default, .Net strings and chars are in unicode. The problem could be that your folder consists some characters which are allowed in URL, but not allowed in a file system path. Could you send me the URL (which can be seen in the web browser), so I can use it for debugging?

2-3. If someone could tell me how to/where to display an option/button/dialog which would handle these features, then I'll do!

4. I tried to put the disconnect button there, but it had to be pushed twice to disappear. To first click, panel switched to file system view, and only the 2nd click called the disconnect plugin method .. so far I could not find the reason for this strange behaviour.
Anyway, actually, there is no really need to disconnect ... when you visit SkyDrive web pages, you can also just close your browser window to "disconnect". The SkyDrive session consists nothing more than a bunch of cookies and the CID.

5. I'll do this in the next release, of course.

BR,
Gabor
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2ghollosy
Ad.1.
Here you go:
http://cid-e12762cbdafb3c47.skydrive.live.com/home.aspx

Ad.2.
Properties dialogue for changing (FsExecuteFile)?
Custom columns (WFX supports them too) for showing?
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
ghollosy
Junior Member
Junior Member
Posts: 13
Joined: 2009-06-17, 13:54 UTC
Location: Hungary

Post by *ghollosy »

1. I'd need the URL when you're inside one of the problematic folder (e.g. folder TEST3 -> cid-893f595d6a588dfe skydrive live com browse aspx TEST3, I had to change the URL a bit, because I'm not allowed to post URLs)

2. OK, properties can be extended to change permission.
For showing ... first the icon is used to show this info (of course, only for the root folders, because sub items inherit it, and can't be changed, just for the root). Second, the library (DTools) I use to write FS plugin in .Net does not support custom columns :(
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

Ad. 1. Folders:
TC -> http://cid-e12762cbdafb3c47.skydrive.live.com/browse.aspx/TC

City -> http://cid-e12762cbdafb3c47.skydrive.live.com/browse.aspx/City

There is also "Dokumenty" (Polish for Documents) folder shown on the same level as others which gives very same error as these two from above but this resource is not visible on WWW.

Few folders with "private" icon are shown but enter on them does nothing. Either go inside them (even if empty) or show some message (i.e. that browsing private folders is not possible).


Oh! And today three strange folders appeared:
E12762CBDAFB3C47!154
E12762CBDAFB3C47!170
E12762CBDAFB3C47!185
They are shown with standard folder icon (taken from TC) but when I am trying to browse them I have:
System.ArgumentNullException: Wartość nie może być zerowa.
Nazwa parametru: webFolderParent
w HgCo.WindowsLive.SkyDrive.SkyDriveWebClient.ListSubWebFolderItems(WebFolderInfo webFolderParent, WebFolderViewType viewType)
w HgCo.WindowsLive.SkyDrive.SkyDriveWebClient.ListSubWebFolderItems(WebFolderInfo webFolderParent)
w HgCo.WindowsLive.SkyDrive.TotalCommander.Plugins.SkyDriveWfx.FindFirst(String Path, FindData& FindData)
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
ghollosy
Junior Member
Junior Member
Posts: 13
Joined: 2009-06-17, 13:54 UTC
Location: Hungary

Post by *ghollosy »

1. Issue "Forbidden characters in path name" is solved: files or folders having '_' char in their names caused the problem. For such files and folders the URL is extended with an extra character '|' before '_'. E.g. tower_002.jpg turned into tower|_002.jpg in the browser address bar. It seems that MS developers are really funny guys :)

2. Those folders are really strange. Where did you get them?!? How did you created it?!? Because their names and URLs are totally different from the other items I've seen so far:
E12762CBDAFB3C47!154 = Strange, URL = /.res/E12762CBDAFB3C47!154, it should be /Strange
E12762CBDAFB3C47!170 = Clouds, URL = /.res/E12762CBDAFB3C47!170, it should be /Clouds
E12762CBDAFB3C47!185 = People, URL = /.res/E12762CBDAFB3C47!185, it should be /People

But this won't be an issue, if TC could handle 2 names for a file/folder:
- one for displaying
- one for navigation
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

ghollosy wrote: 2. Those folders are really strange. Where did you get them?!? How did you created it?!? Because their names and URLs are totally different from the other items I've seen so far:
E12762CBDAFB3C47!154 = Strange, URL = /.res/E12762CBDAFB3C47!154, it should be /Strange
E12762CBDAFB3C47!170 = Clouds, URL = /.res/E12762CBDAFB3C47!170, it should be /Clouds
E12762CBDAFB3C47!185 = People, URL = /.res/E12762CBDAFB3C47!185, it should be /People
They are shown on SkyDrive as folders under Photos category (like City is), TC shows them together with the rest but I did not create them from SD!

Take a look here:
http://cid-e12762cbdafb3c47.skydrive.live.com/home.aspx

IIRC I used "Photo gallery" page from my Windows Live account to have them. In my opinion these should be either treated as links (hard links or symbolic ones, I am not sure) to other location (which should be shown too) or just as standard folders.

It seems that playing with Photos content provides some operations on SD without going there directly. If I create category, folder with the same name appears on SD. I will check what happen on deletion but I assume that content will be kept untouched on SD but removed from Gallery. We'll see.

Hopefully there are no other strange issues with basic operations on the rest of WindowsLive services (like Events, Gorups or calendars). I hope there will neither be when I decide to add Group's photos or something like that.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Error, could not load plugin on Vista 64

Post by *robinsiebler »

I don't know if I am missing some part of the the .NET framework (and the instructions for installing the .NET Framework don't work for Vista 64), but when I double-click on SkyDriveExplorer I get the error "Error, could not load plugin!"

I'm using TC 7.50B6, if that matters.
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2robinsiebler
1. Try newest version (if you're not using it already):
http://skydrivewfx.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=29133

2. I assume it suffers the same problem I had with Comparer: "any processor" build instead of 32bit only. I will recompile it as soon as sources will be on my HDD, and put somewhere then (for you to check).

2ghollosy
Nice work with 0.8.1 :)
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Post by *robinsiebler »

I have the latest version. I'll wait for the next, it seems. :p
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2robinsiebler
I am sorry but you'll have to wait for an author to fix it.

I can compile it easily but it also requires to use some external tool after that and this part is failing (crashing) on my PC.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
ghollosy
Junior Member
Junior Member
Posts: 13
Joined: 2009-06-17, 13:54 UTC
Location: Hungary

Post by *ghollosy »

Hi,

I started to build a 64bit test environment. Once it's ready, I can take care of these 64bit related issues and perhaps fix them ...
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2ghollosy
Can you build your project as x86 instead of Any CPU?
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
Post Reply