如何获取当前登录的Dropbox文件夹的位置 [英] How to get the location of currently logined Dropbox folder

查看:146
本文介绍了如何获取当前登录的Dropbox文件夹的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Dropbox.dmg 起初,我使用"xyz"凭据登录.我在/Users/Syammala/Dropbox中找到了Dropbox文件夹.然后我注销并使用不同的凭据登录,并说"pqr".然后提示我选择Dropbox文件夹的位置,然后输入/Users/Syammala/Desktop/Dropbox.这样,我们就可以为不同的用户登录名找到不同的位置.我想知道的所有内容都没有办法为当前用户登录获取Dropbox文件夹的路径.我正在Mac OSX中完成所有这些工作.

I installed Dropbox.dmg At first i logined with "xyz" credentials. I got Dropbox folder in /Users/Syammala/Dropbox. Then i logged out and logined with different credentials say "pqr".I then got prompt to select the location for Dropbox folder and then i gave /Users/Syammala/Desktop/Dropbox. And like that we get differenet locations for different user logins. All here i wanted to know is there any way to get path of Dropbox folder for current user login. I am doing all this in Mac OSX.

推荐答案

Dropbox桌面客户端将有关本地Dropbox文件夹位置的信息写入"info.json"文件,您可以通过编程方式读取该文件.

The Dropbox desktop client writes information about the location of the local Dropbox folder to an "info.json" file that you can programmatically read.

有关文件位置及其中数据格式的信息,请参阅以下帮助文章:

For information on the location of the file and the format of the data in it, refer to this help article:

https://www.dropbox.com/help/4584

这篇关于如何获取当前登录的Dropbox文件夹的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆