Skip to content

Behavior xASL_adm_DeleteFileList for symbolic links #565

@HenkMutsaerts

Description

@HenkMutsaerts

Release Notes

  • Improved behavior of xASL_adm_DeleteFileList, which now understands if the same file is tried to delete twice (e.g., in the case of symbolic links)

Problem statement

Symbolic links are found by xASL_adm_GetFileList, if they point to a folder they are found regardless of the bGetDirNames input argument. This can become problematic if the retrieved list includes both the original files and the symbolic links pointing to these files. An example of this would be in xASL_adm_DeleteFileListat line 62delete(filepaths{:});` where a full list is deleted at once for improved performance, but if this list includes both the original file and the symbolic link pointing to the original file, this may induce conflicts.

An elegant solution could be that xASL_adm_GetFileList understands if a file that it found (either directly or as symbolic link within a symbolic folder link) point to a file that it already found in the list. This would avoid processing the same file multiple times.

This behavior was detected by trying BASIL's implementation in xASL_quant_Basil, which performs an iteration, creates folders with the names step_1 step_2 ... step_n and then always has the same symbolic link folder pointing to the latest iteration, called step_n_latest.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions