PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Checks the existence of a directory.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
WINDEVWEBDEV - Server codeReports and QueriesJavaPHPAjaxUser code (UMC)
MyDirectory is string = "C:\DataDirectory"
IF fDirectoryExist(MyDirectory) = True THEN
Info("The directory " + MyDirectory + " exists on disk")
END
Windows Mobile
MyDirectory is string = "\DataDirectory"
IF fDirectoryExist(MyDirectory) = True THEN
Info("The directory " + MyDirectory + " exists on disk")
END
Syntax
<Result> = fDirectoryExist(<Directory Name>)
<Result>: Boolean
  • True if the directory exists,
  • False otherwise (the directory name corresponds to a file name for example).
<Directory Name>: Character string (with quotes)
Name and full (or relative) path of the directory. The wildcard characters (*,?) are not allowed.
Versions 15 and later
WindowsLinux This parameter can be in Ansi or Unicode format.
AndroidAndroid Widget This parameter can correspond to a full path or to a relative path in relation to the current directory (returned by fCurrentDir). This parameter is case sensitive.
Reminder: In Android, the file system is read-only on the device and on the emulator. An application has the rights to write into its setup directory or into one of its sub-directories, as well as onto the external memory (SDCard).
New in version 15
WindowsLinux This parameter can be in Ansi or Unicode format.
AndroidAndroid Widget This parameter can correspond to a full path or to a relative path in relation to the current directory (returned by fCurrentDir). This parameter is case sensitive.
Reminder: In Android, the file system is read-only on the device and on the emulator. An application has the rights to write into its setup directory or into one of its sub-directories, as well as onto the external memory (SDCard).
WindowsLinux This parameter can be in Ansi or Unicode format.
AndroidAndroid Widget This parameter can correspond to a full path or to a relative path in relation to the current directory (returned by fCurrentDir). This parameter is case sensitive.
Reminder: In Android, the file system is read-only on the device and on the emulator. An application has the rights to write into its setup directory or into one of its sub-directories, as well as onto the external memory (SDCard).
Windows Mobile This path must necessarily be a full path. It cannot be a relative path.
Versions 16 and later
Universal Windows 10 App The directory path corresponds to a relative path in relation to the current directory. The current directory corresponds to the data directory of application.
Reminder: Only the directories found in the data directory associated with the application can be used.
New in version 16
Universal Windows 10 App The directory path corresponds to a relative path in relation to the current directory. The current directory corresponds to the data directory of application.
Reminder: Only the directories found in the data directory associated with the application can be used.
Universal Windows 10 App The directory path corresponds to a relative path in relation to the current directory. The current directory corresponds to the data directory of application.
Reminder: Only the directories found in the data directory associated with the application can be used.
Versions 17 and later
iPhone/iPad This parameter can correspond to a full path or to a relative path in relation to the current directory (returned by fCurrentDir). This parameter is case sensitive.
Reminder: On iPhone/iPad, the file system is read-only on the device and on the emulator. An application has the rights to write into its setup directory or into one of its sub-directories.
New in version 17
iPhone/iPad This parameter can correspond to a full path or to a relative path in relation to the current directory (returned by fCurrentDir). This parameter is case sensitive.
Reminder: On iPhone/iPad, the file system is read-only on the device and on the emulator. An application has the rights to write into its setup directory or into one of its sub-directories.
iPhone/iPad This parameter can correspond to a full path or to a relative path in relation to the current directory (returned by fCurrentDir). This parameter is case sensitive.
Reminder: On iPhone/iPad, the file system is read-only on the device and on the emulator. An application has the rights to write into its setup directory or into one of its sub-directories.
Remarks
To check the existence of a file, use fFileExist.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Java wd230java.jar
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
CRIAR DIRETORIO WINDEV MOBILE
CRIAR DIRETORIO USANDO
SysStatusStorageCard
fDirectoryExist
fMakeDir

https://youtu.be/txcH3ajxokc

amarildo
Nov. 07 2018
EXEMPLO
https://youtu.be/4X8OyClwJjk

http://windevdesenvolvimento.blogspot.com.br/2018/04/dicas-1740-publica-windev-arquivos-24.html

https://groups.google.com/d/forum/amarildowindev
http://windevdesenvolvimento.blogspot.com/2018/01/inscricao-para-grupo-privado-amarildo.html
http://windevdesenvolvimento.blogspot.com.br/2017/07/menu-blog.html

// EXEMPLO


// VOU PERGUNTAR SE DIRETORIO EXISTE

IF fDirectoryExist(EDT_DIRETORIO) THEN

ELSE
fMakeDir(EDT_DIRETORIO)
// SE NAO EXISTIR, VAMOS CRIAR DIRETORIO
END

// SIMPLES

De matos
May 29 2018
Exemplo para Ver Se Diretorio Existe
//Quero Verificar se Diretorio existe
IF fDirectoryExist(SAI_DIRETORIO) THEN
Info("Diretorio Existe")
ELSE
Info("Diretorio Nao Existe")
END

//Frances
SI fRépertoireExiste(SAI_DIRETORIO) ALORS
Info("Diretorio Existe")
SINON
Info("Diretorio Nao Existe")
FIN

//Blog Com Video e Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/03/curso-windev-arquivos-002-diretorio-ver.html
De matos AMARILDO
Mar. 12 2016