diff --git a/app/Services/SftpFileService.php b/app/Services/SftpFileService.php new file mode 100644 index 0000000..b3d8276 --- /dev/null +++ b/app/Services/SftpFileService.php @@ -0,0 +1,35 @@ +disk = Storage::disk('ftp'); + } + + public function getFiles(): array + { + return $this->disk->files(); + } + + public function getFileContent(string $file): string + { + return $this->disk->get($file); + } + + public function moveFile(string $file, string $destination): bool + { + return $this->disk->move($file, $destination); + } + + // public function deleteFile(string $file): bool + // { + // return $this->disk->delete($file); + // } +}