EZTwainX Folder Methods
These are the methods offered by the Folder child object of the EZTwainX control. In most languages if the EZTwainX control is called eztwain, you call these methods by writing something like this:
eztwain.Folder.Create("images")
See also: File Methods, File Properties
• Any folder name which is not fully qualified is interpreted relative to the File.WorkingDirectory.
For example, if eztwain.File.WorkingDirectory is "c:\TEMP" and you call eztwain.Folder.Create("images") this will be interpreted as eztwain.Folder.Create("c:\TEMP\images")• In Javascript as in C and C++, remember to double the backslashes: "C:\\Temp" - A single backslash just quotes the following character.
Method | Description | Version |
Create(f) | Create an empty folder named f. Throws an error if f exists or cannot be created. | 1.60 |
Delete(f) | Delete folder f. Fails if deletion fails for any reason. | 1.60 |
Exists(f) | Returns True if folder f exists, False otherwise. | 1.60 |
List(pattern) | Return a list of folders that match the pattern string. Example: List("*") |
1.60 |
Move(f, g) | Move folder f to g. Move("a", "b") is basically a rename of a to b. Can move between volumes e.g. Move("scans", "Z:\scans") Throws an error if anything goes wrong. |
1.60 |
DateCreated(f) | Returns the creation date & time of folder f. The returned value is a Date object. | 1.60 |
DateLastAccessed(f) | Returns the DateLastAccessed property of folder f. | 1.60 |
DateLastModified(f) | Returns the DateLastModified property of folder f. | 1.60 |