ارفع راسك فوق انته سوري حر ... :green_heart::green_heart:

Skip to content
Snippets Groups Projects
Commit 5be67abc authored by George's avatar George
Browse files

remove static Folder

parent 45376a2d
Branches
No related tags found
No related merge requests found
......@@ -26,16 +26,6 @@ class LocalFileManager {
return iFinderURL
}
var scannerBatchURL: URL {
let iFinderURL = documentsURL.appendingPathComponent(AppConfigurator.BatchesFolderName, isDirectory: true)
/// Check if file not exist and create
if !filesManager.fileExists(atPath: iFinderURL.path) {
try? filesManager.createDirectory(at: iFinderURL, withIntermediateDirectories: true, attributes: nil)
}
return iFinderURL
}
/// Mapped for case insensitivity
var excludesFileExtensions: [String]? {
get {
......
......@@ -37,7 +37,7 @@ class PDFManager {
}
class func createPDFDocument(from image: UIImage, localFileManager: LocalFileManager?) {
guard let scannerURL = localFileManager?.scannerBatchURL else { return }
guard let scannerURL = localFileManager?.scannerURL else { return }
let urlPDFtoSave = scannerURL.appendingPathComponent(String.getDocumentName())
let document = PDFDocument()
......
......@@ -35,7 +35,6 @@ struct AppConfigurator {
}
static let DocumentsFolderName = "ScannerApp"
static let BatchesFolderName = "Batches"
static let ThumbnailsFolderName = ".ThumbnailImages"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment