mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
FTP debugging info
This commit is contained in:
parent
5042119a35
commit
4972363aea
@ -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`)
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user