# Control Folder Operations in PRO Storage¶

This article provides for the source of four utility apps to operate on AIMMS PRO storage.

To access the apps, create an .aimmspack from these sources and publish them on your AIMMS PRO system.

The app sources are available for download in the sections below:

1. Alter authorization and/or delete individual files and folders: 323-control-panel

2. Alter authorization of files in a pro storage folder: 323-alter-authorization

3. Copy a PRO Storage folder to a Windows folder on laptop/desktop: 323-copy-files-from-server

4. Alter authorization of files in a pro storage folder: 323-copy-files-to-server

## Control Panel¶

This is a WinUI app, and when you select the storage tab, the screen looks as follows:

For individual files (objects) and folders (buckets) you can alter the authorization, add them or delete them.

• When you delete a folder (bucket), you delete all its files and subfolders.

• If you change the authorization of a folder (bucket), you do not change the authorization of its files or subfolders.

Note

The default setup is such that users that are not members of the group Admin, ordinary users for short, cannot read the folder /userdata. To provide them with this access, a user that is the admin, or a member of the group Admin, can provide Read access to all of the folder /userdata and of the direct sub folders corresponding to the environments. Note that the consequence of this action is that a user sees which other users are on the AIMMS PRO system. This may, or may not, be a violation of the security protocols; and is therefore not provided by default.

## Alter Authorization¶

AlterAuthorization is a WinUI app that starts with the following screen:

There are four buttons that allow you to operate this app:

1. Select Target Folder. This will bring up the following dialog:

In this dialog you can click on:

1. A number, then you will get in the indicated subfolder.

2. The button up; then you will go up one level in the directory structure.

3. The button cancel, ignore changes made in the dialog.

4. The button ok, accept changes made in the dialog.

2. Select my data. Directly select the folder /Userdata/<env>/<username> The reason for this button is, as explained above, that ordinary users cannot read the folder /Userdata. They can, however, browse through it. This button does just that to land at one own’s files.

3. Specify Authorization. In this dialog you can specify an authorization to be used.

To select a new authorization, you should:

1. Select the environment, in the example AIMMS is selected.

2. Select a user, or a group of users. In the example, the user Chris is selected.

3. A new entry appears in the table Current Authorization. Here you can check/uncheck tick marks as required.

4. Alter authorization files and folders. Pressing this button will apply the authorization specified to the target folder specified and all files and folders therein.

## Copy Files From Server¶

This is a WinUI app that copies a folder from AIMMS PRO Storage to a folder on your Windows laptop or desktop; it starts with the following screen:

You can use the following buttons to operate this app:

1. Select Source Folder This dialog behind this button is similar to the Select Target Folder of the AlterAuthorization app.

2. Select My Data Directly select the folder /Userdata/<env>/<username> to be used as source.

3. Select Target Folder The dialog behind this button is a Windows dialog to select a folder.

4. Get File Info This will scan the selected source folder and will fill the lower table with file overview information. You can use the p01_selection column to select/unselect files for copying.

5. Copy selected files This will copy all selected files.

## Copy Files To Server¶

This is a WinUI app that copies a folder from your Windows laptop or desktop to AIMMS PRO Storage. It starts with the following screen:

You can use the following buttons to operate this app:

1. Select source folder Behind this button is a Windows folder selection dialog.

2. Select target folder Behind this button is a PRO Storage folder selection dialog, similar to the Select Target Folder button of AlterAuthorization.

3. Select my data This will set the folder selected to the data folder of the user.

4. Alter authorization Specify the authorization to be used for the files copied to AIMMS PRO Storage.

5. Copy files Actually copy all the files and use the authorization selected.

6. Copy a single file This will alter the selection of buttons, now you will need to select a single file instead of a folder.

Last Updated: September, 2020