Sample AquaScript:
var f = aqua.project.getUserFile("FOLDER");
f.createFolder();
This should successfully create a folder in user files called "FOLDER". However, no such folder is created.
540 B
-- createFolder()
Creates the folder given by the path, including any necessary but nonexistent parent folders. Note that if this operation fails it may have succeeded in creating some of the necessary parent folders. This is similar to how it works in AD Studio.
Dev Note: Added functionality to handle file and folder operations on a non-existing user file. This is with the help of newly introduced delegate class, ADServerUserFileFolderProxy which represents a non existing user file that can be a file or folder. This class is capable of
1) Handling file operation
2) Handling folder operations
Once user creates a folder by calling createFolder() api, that particular instance functions like a folder and all api work accordingly. Similarly if user creates a file by calling any write api, that particular instance functions like a file and all api work accordingly.
@QA,
You will have to test following scenario:
To obtain a user file reference:
var f = aqua.project.getUserFile("temp");
Nº do Problema2965 |
Fechado |
Corrigido |
Resolvido |
Finalização |
Nenhuma data de vencimento |
Compilação Reparada ADServer 17.0.0-6, ADS 18.0.0-dev-56 |
Nenhum tempo estimado |
-- createFolder()
Creates the folder given by the path, including any necessary but nonexistent parent folders. Note that if this operation fails it may have succeeded in creating some of the necessary parent folders. This is similar to how it works in AD Studio.
Dev Note: Added functionality to handle file and folder operations on a non-existing user file. This is with the help of newly introduced delegate class, ADServerUserFileFolderProxy which represents a non existing user file that can be a file or folder. This class is capable of
1) Handling file operation
2) Handling folder operations
Once user creates a folder by calling createFolder() api, that particular instance functions like a folder and all api work accordingly. Similarly if user creates a file by calling any write api, that particular instance functions like a file and all api work accordingly.
@QA,
You will have to test following scenario:
To obtain a user file reference:
var f = aqua.project.getUserFile("temp");