Beispiel #1
0
        private static string GetWindowsDropboxLocation()
        {
            var infoFile = GetWindowsDropboxInfoFileLocation();
            var infoJson = File.ReadAllText(infoFile);

            var dropboxLocation = DropboxInfoParser.GetDropboxDirectoryLocationFromJson(infoJson, DropboxInfoParser.DropboxTypes.Business);

            if (!string.IsNullOrWhiteSpace(dropboxLocation))
            {
                return(dropboxLocation);
            }

            return(DropboxInfoParser.GetDropboxDirectoryLocationFromJson(infoJson, DropboxInfoParser.DropboxTypes.Personal));
        }
Beispiel #2
0
        private static string GetWindowsDropboxLocation(string type_)
        {
            var infoFile = GetWindowsDropboxInfoFileLocation();

            return(DropboxInfoParser.GetDropboxDirectoryLocationFromFile(infoFile, type_));
        }