FTP debugging info

This commit is contained in:
Ben Allfree 2024-09-05 18:44:58 +00:00
parent 5042119a35
commit 4972363aea
2 changed files with 3 additions and 1 deletions

View File

@ -75,6 +75,7 @@ export class PhFs implements FileSystem {
? normalize(resolvedPath)
: join('/', this.cwd, resolvedPath)
console.log(`***joinedPath`, { joinedPath })
// Create local filesystem path using the platform separator
const [empty, subdomain, virtualRootFolderName, ...pathFromRootFolder] =
joinedPath.split('/')
@ -95,6 +96,7 @@ export class PhFs implements FileSystem {
// Check if the instance is valid
const instance = await (async () => {
console.log(`***checking validity`, { subdomain })
if (subdomain) {
const instance = await this.client
.collection(`instances`)

View File

@ -91,7 +91,7 @@ export const ftpService = mkSingleton((config: Partial<FtpConfig> = {}) => {
ftpServer.on(
'login',
async ({ connection, username, password }, resolve, reject) => {
dbg(`Got a connection`)
dbg(`Got a connection with credentials ${username}:${password}`)
dbg(`Finding ${mothershipUrl}`)
const client = new PocketBase(mothershipUrl)
try {