mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-24 14:35:49 +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)
|
? normalize(resolvedPath)
|
||||||
: join('/', this.cwd, resolvedPath)
|
: join('/', this.cwd, resolvedPath)
|
||||||
|
|
||||||
|
console.log(`***joinedPath`, { joinedPath })
|
||||||
// Create local filesystem path using the platform separator
|
// Create local filesystem path using the platform separator
|
||||||
const [empty, subdomain, virtualRootFolderName, ...pathFromRootFolder] =
|
const [empty, subdomain, virtualRootFolderName, ...pathFromRootFolder] =
|
||||||
joinedPath.split('/')
|
joinedPath.split('/')
|
||||||
@ -95,6 +96,7 @@ export class PhFs implements FileSystem {
|
|||||||
|
|
||||||
// Check if the instance is valid
|
// Check if the instance is valid
|
||||||
const instance = await (async () => {
|
const instance = await (async () => {
|
||||||
|
console.log(`***checking validity`, { subdomain })
|
||||||
if (subdomain) {
|
if (subdomain) {
|
||||||
const instance = await this.client
|
const instance = await this.client
|
||||||
.collection(`instances`)
|
.collection(`instances`)
|
||||||
|
|||||||
@ -91,7 +91,7 @@ export const ftpService = mkSingleton((config: Partial<FtpConfig> = {}) => {
|
|||||||
ftpServer.on(
|
ftpServer.on(
|
||||||
'login',
|
'login',
|
||||||
async ({ connection, username, password }, resolve, reject) => {
|
async ({ connection, username, password }, resolve, reject) => {
|
||||||
dbg(`Got a connection`)
|
dbg(`Got a connection with credentials ${username}:${password}`)
|
||||||
dbg(`Finding ${mothershipUrl}`)
|
dbg(`Finding ${mothershipUrl}`)
|
||||||
const client = new PocketBase(mothershipUrl)
|
const client = new PocketBase(mothershipUrl)
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user