Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 16 Dec 2017, 01:45
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Dropbox Filemanager
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 6 [80 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Sat 11 Oct 2014, 12:24    Post subject:  

Yep your right ... '/' is rejected...I assume the dropbox api sees this as a perverse request Very Happy

I was in a bit a rush last time as was preparing for a trip out.

Apart from that are you getting happy download links and think that a note about dl=1 is sufficient?

mike
Back to top
View user's profile Send private message 
Scooby

Joined: 03 Mar 2012
Posts: 601

PostPosted: Sat 11 Oct 2014, 16:01    Post subject:  

mikeb wrote:

Apart from that are you getting happy download links and think that a note about dl=1 is sufficient?


Yep getting happy download links

about dl=1:

If I would get free hands I would probably introduce an option to control
behaviour for folder as an example I use a a variable called FOLDER_BEHAVIOUR
if it contains "zip" change last char to 1 also for folders

for files always change to 1


Code:
   URL=`dropbox_uploader.sh "$PROFILE" url "$REMOTE_DIR$REMOTE" | grep Url | cut -f 2`

   [[ $REMOTE != */  || $FOLDER_BEHAVIOUR == zip ]] && URL="${URL/%0/1}"
   
   gxmessage "$URL"


But maybe that sorts under your "cos I am lazy" clause? Very Happy


After thinking about it I would put up both links in gxmessage with description for folder
but always dl=1 for files

If lazyness was not a factor how would you do it?

I did a test but I'm using yad instead of gxmessage




BTW

If I have a empty folder on dropbox I get a folder in it called "/" in dropbox_gui
Is this something that I have accidently hacked in or do you get the same?

I think maybe this is due to me using the newest version of dropbox_uploader.sh
If I reqeust an empty dir then the result would be only "[D]" so to fix I added
a check for length in build_remote_list

[ "${#I}" -le 3 ] && continue
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Sat 11 Oct 2014, 17:54    Post subject:  

Quote:
If I have a empty folder on dropbox I get a folder in it called "/" in dropbox_gui
Is this something that I have accidently hacked in or do you get the same?

hmm ..i create an empty folder and it drops into it and shows...nothing
If I go up and back into it still nothing.
If I add a file...delete it ...go up and back into the empty folder...still nothing....
I think that's what you mean and no there is no '/' folder and the expected path in the address bar.

Ok for the download link its really just a case of what is most clear and simple for a user.
I considered giving both links but is that messy...either in code terms or user information ? Since the change is one digit it seemed borderline as to automate the whole thing or not.
Another thought is is this option an officially 'approved' one or something that might disappear some day?

My jury is out on this one.....

mike
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Sun 02 Nov 2014, 08:15    Post subject:  

Ok something is better than nothing.... update in the first post to 0.2 ..the improved link grabber, confirmation for delete and an info box to check quota...

test and enjoy.

mike
Back to top
View user's profile Send private message 
trapster


Joined: 28 Nov 2005
Posts: 2098
Location: Maine, USA

PostPosted: Sun 02 Nov 2014, 10:54    Post subject:  

Could this be made into a simple gui for uploads/downloads to local servers?

ip - 192.168.1.xxx
user - xxxx
password - xxxx


I've been playing with html and php for something to move multiple files but not much luck (yet).

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog
Back to top
View user's profile Send private message Visit poster's website 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Sun 02 Nov 2014, 11:01    Post subject:  

Quote:
Could this be made into a simple gui for uploads/downloads to local servers?

well its a frontend for a script made specifically to use the dropbox apis so not really suitable.

Unless its an NFS share I use gftp and ftp or sshfs for LAN transfers.

mike
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Thu 05 Feb 2015, 13:06    Post subject:  

Ok minor update...

Now shows local and remote file sizes...sort of useful really.
The code around there got a quick tidy.
This includes a modification to the script too though does not really change its basic function , just adds the size to the end of the results.

before anyone asks local sizes are in KB simply because it gets messy otherwise.

enjoy

mike
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Tue 10 Mar 2015, 18:05    Post subject:  

Minor fix due to the address for api cration changing.....

I need to add a help/instructions dialog but the profile bug was a bit of a show stopper unless you manually edit the address in the browser Smile so wanted to post it straight away.

mike
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Sat 21 Mar 2015, 05:49    Post subject:  

Ok did the help dialog boogie and updated to 0.2.3... see first post.

A bit of script tidying too.

Still light and breezy .... enjoy

mike
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Tue 21 Apr 2015, 06:08    Post subject:  

I see dropbox have blocked older versions of their Linux software and now you need a huge pile of qt5 to login with. Apart from the ridiculous size it also locks out older systems. Have they not heard that plain gtk2 can do the job? command line use requires additional separate python software install so hardly neat either.
Apart from the gross stupidity of the design I must mention that this here tiny script is still working just fine as the api's used are independent of their software or appear to be. Smile

happy boxing...makes a nice file host.

by the way palemoon is choking on links...so the direct =1 might be a good idea for such as this forum.
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1436
Location: The other Mr. 305

PostPosted: Thu 18 Jun 2015, 23:36    Post subject:  

This is a fine app. Thanks Mikeb
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Fri 19 Jun 2015, 02:13    Post subject:  

Why thank you sir..... Smile

It does seem to cut through the junk nicely ....

mike
Back to top
View user's profile Send private message 
Mr.Spenalzo

Joined: 28 Sep 2017
Posts: 1

PostPosted: Wed 22 Nov 2017, 15:13    Post subject: Dropbox_GUI-0.2.3 - no token produced  

Hi. I'm trying to get Dropbox_GUI-0.2.3 to work on TahrPup 6.0.5 32bit. Downloaded the pet, and ran from menu, created the web app which generated key and secret; all that went fine. After final acceptance w/ 'y' terminal window closes, GUI window remains unchanged w/ no dropbox directory loading on right side. I can can see 'token' flash quickly in terminal before close. Can't locate a profile so I don't know if any is created. Any help/suggestions much appreciated. Thank you.

PS: for what it's worth GUI window icons don't render. Thanks again.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11081

PostPosted: Thu 30 Nov 2017, 14:44    Post subject:  

Thank you for the information.
It seems dropbox have fully moved to their new apis so the old script no longer works.
The update version 0.3.0 is on the first post and seems to be doing the job nicely.
Existing users will find the need to create an new app and profile but thats sort of handled by the script.
Mike
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 3149
Location: wales

PostPosted: Thu 30 Nov 2017, 14:53    Post subject:  

welcome back mikeb Cool
_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=96178
Xenialpup64, ibuilt with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 6 [80 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0544s ][ Queries: 15 (0.0082s) ][ GZIP on ]