http://digital-flame.ru/

# Class TAddFoldersAndFilesToDB

Description | Hierarchy | Fields | Methods | Properties

## Unit

uAddFoldersAndFilesToDB

## Declaration

`type TAddFoldersAndFilesToDB = class(TDataModule)`

## Description

## Hierarchy

- TDataModule
- TAddFoldersAndFilesToDB

## Overview

### Methods

| `constructor Create(AOwner: TComponent); override;`
| `procedure GetFoldersFromRelDir(ARelDir: String; var AAbsDirs, ARelDirs: TStringList);`
| `procedure AddFoldersToDB(AAbsDirs, ARelDirs: TStringList; var idParentForFile:integer; users_id:integer);`
| `procedure GetInfoAboutFile(ARelPath:string; var fileName:string; var fileSize:int64; var AbsPath:String );`
| `procedure InsertFolderOrFileToDB (IsFolderParam:Boolean;idParent: Integer; nameToInsert: string; users_id:integer;fileSize:integer;relPath:string; absPath:string); overload;`
| `procedure InsertFolderOrFileToDB (IsFolderParam:Boolean; idParent:Integer; nameToInsert:string; fileSize:integer;relPath:string;absPath:string); overload;`

## Description

### Methods

| `constructor Create(AOwner: TComponent); override;`
Public declarations

| `procedure GetFoldersFromRelDir(ARelDir: String; var AAbsDirs, ARelDirs: TStringList);`
recieves relative dir on server, builds abs dirs, checks if they are will extract folders since

| `procedure AddFoldersToDB(AAbsDirs, ARelDirs: TStringList; var idParentForFile:integer; users_id:integer);`
will add New Record To DB of Folders

| `procedure GetInfoAboutFile(ARelPath:string; var fileName:string; var fileSize:int64; var AbsPath:String );`

| `procedure InsertFolderOrFileToDB (IsFolderParam:Boolean;idParent: Integer; nameToInsert: string; users_id:integer;fileSize:integer;relPath:string; absPath:string); overload;`
inserts Folders and Files with users_id

| `procedure InsertFolderOrFileToDB (IsFolderParam:Boolean; idParent:Integer; nameToInsert:string; fileSize:integer;relPath:string;absPath:string); overload;`
inserts Folders and Files without users_id

Generated by PasDoc 0.14.0.