Find Text Files That Still Name an Old Path
curl --request POST \
--url https://api.zerodrive.dev/v1/files/references \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/files/references', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/files/references"
payload = { "path": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"path": "<string>",
"references": [
{
"file": "<string>",
"line": 123,
"snippet": "<string>"
}
],
"checked_files": 123,
"skipped_large": 123,
"truncated": true
}Find Text Files That Still Name an Old Path
On request only: list the lines of the vault’s own small text files that still name an old path, for example after a move, starting with ROUTER.md at the vault root. A move never runs this. It only reads and never changes a file; changing a file that names the old path is an ordinary write the person asks for. The scan is bounded (files up to 256 KiB, at most 150 files and 8 MiB read, at most 5 pages of 1000 keys listed, at most 50 hits, snippets of at most 300 characters) and the answer says so: truncated true means a limit stopped the scan, so an empty list with truncated true does not mean that nothing names the path.
POST
https://api.zerodrive.dev
/
v1
/
files
/
references
Find Text Files That Still Name an Old Path
curl --request POST \
--url https://api.zerodrive.dev/v1/files/references \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({path: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/files/references', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/files/references"
payload = { "path": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"path": "<string>",
"references": [
{
"file": "<string>",
"line": 123,
"snippet": "<string>"
}
],
"checked_files": 123,
"skipped_large": 123,
"truncated": true
}Authorizations
Body
application/json

