KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Server's Resource Folder Location on Client
PRODUCT: 4D | VERSION: 14.1 | PLATFORM: Mac & Win
Published On: May 29, 2014

In a client server application, files must often transferred from the server to the client. When the client connects to the server, components, plugins, and the resources folder inside the server are copied over to the client. The location of these files on the client are:

Windows 7 & 8
   C:\Users\UserName\AppData\Local\4D

Mac OSX
   HD:Users:Username:Library:Caches:4D

In this location, all remote databases that the client has connected to are stored. Each remote database has its own folder following the format: DatabaseName_ServerIPAddress. For example (MyServerApp_10_125_125_125). The corresponding server’s components, plugins, and resource files are copied over to this location.

In order for the client to retrieve a file in the resources folder, use the command GET 4D FOLDER(Current resources folder). On the client by default, this will point to the resources folder:

Windows 7 & 8
   C:\Users\UserName\AppData\Local\4D\DatabaseName_ServerIPAddress\Resources

Mac OSX
   HD:Users:Username:Library:Caches:4D:DatabaseName_ServerIPAddress:Resources

On the server, GET 4D FOLDER(Current resource folder) returns the path of the server's resource folder.