Create files in Pydio file structure

I have processes that create files directly inside the Pydio folder structure and does not use APIs to move files. What are the consequences of doing this? Is everything going to break?

I’m working with what I assume is an enterprise distribution of Pydio running on CentOS 6.6

Hi,
it will not be an issue as long as you trigger the sync datasource job everytime you add datas(so that they get indexed),
for instance here’s a shell script that will sync a datasource

#!/bin/bash

dsName=<datasource where you put your datas>

# Defaults, adapt to your instance
clientKey=cells-front
clientSecret=<secret key found in pydio.json>
username=<user>
password=<password>
nonce=nonce

publicURL=http://localhost

# for the authorization header the username and password needs to be base64
authToken=$(echo -n "$clientKey:$clientSecret" | base64)

params="grant_type=password&username=$username&password=$password&scope=email%20profile%20pydio%20offline&nonce=$nonce"

# needs jq installed to parse the bearer token, for instance apt install jq
idToken=$(curl -s -X POST $publicURL/auth/dex/token \
	    -H "Content-Type: application/x-www-form-urlencoded" \
	    -H "Authorization:Basic $authToken" \
	    -d "$params" | jq -r .id_token)


# launch the sync datasource job
curl -X PUT \
 $publicURL/a/jobs/user/datasource-resync \
  -H "Accept: application/json" \
  -H "Authorization: Bearer $idToken" \
  -H "Content-Type: application/json" \
  -d '{"JobName":"datasource-resync","JsonParameters":"{\"dsName\":\"$dsName\"}"}'

Thanks, Zayn!
Is there anything done in Pydio itself that triggers a sync similar to this script?

Eric

Hi,
in the interface in datasrouces, you can press this button,

edit:1

Thanks, zayn! You’re the best :slight_smile: