#more details here View more Examples # Support # Timeout in seconds to wait for responses (Defaults to 30) create a directory if it does not existįtpConnect.createFolderIfNotExist('dirToCreate') įtpConnect.rename('test1.txt', 'test2.txt') #Directory functions: //Get directory contentįtpConnect.changeDirectory('moveHereDir') įleteDirectory('dirToDelete') įtpConnect.checkFolderExistence('dirToCheck') #example 2: step by step import 'dart:io' Īwait ftpConnect.uploadFile(fileToUpload) īool res = await ftpConnect.downloadFileWithRetry(fileName, File('myFileFromFTP.txt')) Īwait ftpConnect.downloadFile(fileName, File('myFileFromFTP.txt')) Import 'package:ftpconnect/ftpConnect.dart' įTPConnect ftpConnect = FTPConnect('',user:'user', pass:'pass') įile fileToUpload = File('fileToUpload.txt') īool res = await ftpConnect.uploadFileWithRetry(fileToUpload, pRetr圜ount: 2) Flutter simple and robust dart FTP Connect Library to interact with FTP Servers with possibility of zip and unzip files.
0 Comments
Leave a Reply. |