Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Getfolderpref

Mark Johnson edited this page Sep 15, 2013 · 2 revisions

Gets the current preferences for a folder

Request Parameters

  • action getfolderpref
  • token Your current token (see Session Initalisation)
  • t The current timestamp (optional)
  • name The local path of the folder
  • secret The secret for the shared folder.

returns

JSON string containing:

  • folder An object containing the preferences for the folder:
    • deletetotrash Store deleted files in SyncArchive? (1 for yes, 0 for no)
    • iswritable Do you currently have write access to the folder? (1 for yes, 0 for no)
    • readonlysecret The read only secret for the folder
    • relay Use relay server when required (1 for yes, 0 for no)
    • searchdht Search DHT network for peers? (1 for yes, 0 for no)
    • searchlan Search LAN for peers? (1 for yes, 0 for no)
    • usehosts Use predefined hosts? (1 for yes, 0 for no)
    • usetracker Use tracker server? (1 for yes, 0 for no)

example

GET http://localhost:8888/gui/?token=ToKeNStRinG&action=getfolderprefs&name=/home/me/btsync&secret=SEcREtSTrinG

Clone this wiki locally