Modify ↓
#2380 closed Feature Request (Completed)
Add _IsDir
| Reported by: | AZJIO | Owned by: | guinness |
|---|---|---|---|
| Milestone: | 3.3.9.16 | Component: | Standard UDFs |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
Often used.
If _IsDir('C:\WINDOWS') Then MsgBox(0, '', 'this folder') ; A method for checking folders
If Not (_IsDir('C:\Boot.ini') Or @error) Then MsgBox(0, '', 'this file') ; A method for checking the file
Func _IsDir($sTmp)
$sTmp = FileGetAttrib($sTmp)
Return SetError(@error, 0, StringInStr($sTmp, 'D', 2) > 0)
EndFunc ;==>_IsDir
Attachments (0)
Change History (4)
comment:1 by , 13 years ago
| Version: | 3.3.9.15 |
|---|
comment:2 by , 13 years ago
I think it would be best suited as a second/third example for FileGetAttrib. But I will ask my peers what they think as well.
comment:3 by , 13 years ago
| Milestone: | → 3.3.9.16 |
|---|---|
| Owner: | set to |
| Resolution: | → Completed |
| Status: | new → closed |
Added by revision [8433] in version: 3.3.9.16
Note:
See TracTickets
for help on using tickets.

Automatic ticket cleanup.