# Visual indicator for folders with aliases

**URL:** <https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227>\
**Category:** Help & Support\
**Created:** [September 19, 2025, 2:54am UTC](https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227 "2025-09-19T02:54:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfour18](https://resource.dopus.com/user_avatar/resource.dopus.com/jfour18/32/66032_2.png) [@jfour18](https://resource.dopus.com/u/jfour18)\
**Post date:** [September 19, 2025, 2:54am UTC](https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227/1 "2025-09-19T02:54:45Z")

</div>

Hi,  
Apologies if this has been addressed elsewhere, but is there any way to visually identify (status icon or highlight) folders with aliases, like you can with favourited folders. Would make it easy to see when links are broken, or a folder has been missed.

Cheers,  
John

---

<div class="post-metadata">

**Author:** ![errante](https://resource.dopus.com/user_avatar/resource.dopus.com/errante/32/61692_2.png) [@errante](https://resource.dopus.com/u/errante)\
**Post date:** [September 19, 2025, 3:43am UTC](https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227/2 "2025-09-19T03:43:41Z")

</div>

> [@jfour18](#):
>
> like you can with favourited folders

Sorry, but I can't quite understand what you mean by this. As far as I know, in the file display no folder in Favorites shows any kind of visual indicator to show that in fact it's in Favorites.  
Or are you talking about the Favorites bar?  
And what you're really asking is if something similar can be done for Aliases?

---

<div class="post-metadata">

**Author:** ![jfour18](https://resource.dopus.com/user_avatar/resource.dopus.com/jfour18/32/66032_2.png) [@jfour18](https://resource.dopus.com/u/jfour18)\
**Post date:** [September 19, 2025, 5:32am UTC](https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227/3 "2025-09-19T05:32:13Z")

</div>

Hey, I am referring to the fact that favourite folders can be visually identified (see attached), and was wondering whether this is any known way of doing this for file/folders that have an alias attached to them (e.g. if I create an alias for 'documents', is there any way to make it automatically have a visual indicator (like different color, or icon), and to have that visual indicator go away when the link is broken (e.g. if the folder is renamed, or the file moved).

 ![image](https://resource.dopus.com/uploads/default/original/3X/d/b/dbc4cb5fc91d60a217cf1e46c2d5820669dfbc31.png)

---

<div class="post-metadata">

**Author:** ![jfour18](https://resource.dopus.com/user_avatar/resource.dopus.com/jfour18/32/66032_2.png) [@jfour18](https://resource.dopus.com/u/jfour18)\
**Post date:** [September 19, 2025, 6:38am UTC](https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227/4 "2025-09-19T06:38:08Z")

</div>

I have created a custom solution for myself (barring a few quirks), but this would probably be a cool feature if not already stock.

 ![image](https://resource.dopus.com/uploads/default/original/3X/8/7/871e5e162d1d8eef7c674c8fc3dde15275ae6754.png)

---

<div class="post-metadata">

**Author:** ![errante](https://resource.dopus.com/user_avatar/resource.dopus.com/errante/32/61692_2.png) [@errante](https://resource.dopus.com/u/errante)\
**Post date:** [September 20, 2025, 1:24am UTC](https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227/5 "2025-09-20T01:24:26Z")

</div>

Thanks for the tip.  
Honestly I had no idea something like that existed.  
But it's true, I don't think there's any built-in equivalent for aliases.  
Correct me if I'm wrong, but even if such an option existed (showing an alias in another color), it wouldn't really help you validate an alias, since you'd need to know beforehand that a specific folder points (or should point) to an alias. Without that info, you wouldn't know if "its link is broken" or not (a broken one would just look like a normal folder), which kind of defeats the purpose of the suggestion itself.

---

<div class="post-metadata">

**Author:** ![jfour18](https://resource.dopus.com/user_avatar/resource.dopus.com/jfour18/32/66032_2.png) [@jfour18](https://resource.dopus.com/u/jfour18)\
**Post date:** [September 20, 2025, 1:53am UTC](https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227/6 "2025-09-20T01:53:07Z")

</div>

You are right. It would be difficult (and probably computationally heavy) to try to find a way to represent broken aliases. I imagine that it could perhaps be done via metadata but that is currently beyond my needs.

I still find the indicators that I have created useful. They allow you to see whether a folder that you know should be aliased or favorited is (e.g. if you have multiple folders within a directory that you want to be able to get to with go functions).

---

<div class="post-metadata">

**Author:** ![errante](https://resource.dopus.com/user_avatar/resource.dopus.com/errante/32/61692_2.png) [@errante](https://resource.dopus.com/u/errante)\
**Post date:** [September 20, 2025, 1:38pm UTC](https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227/7 "2025-09-20T13:38:48Z")

</div>

> [@jfour18](#):
>
> I have created a custom solution for myself

Hi. Do you mean this?

> [@Visual indicators for aliases, favorites, and smart favorites](https://resource.dopus.com/t/visual-indicators-for-aliases-favorites-and-smart-favorites/57248):
>
> I wanted to be able to quickly scan which file/folders have been aliased, favorited, or smart favorited, to support better organization. E.g. it is useful to know which folders are aliased so that you can quickly return to them with goscripts. Settl…

But even with that you can't detect broken aliases, right?

I don't see it as something too heavy to compute (at least the column), and it will depend on what your real need is for having that data (I don't have that need, FWIW).  
Two ideas come to mind.

- One uses a label (as a state) called alias, which you place explicitly when you create an alias (you can also automate this in various ways). Then, with a column, you can detect if a folder breaks its alias link among other things.  
An example:  
 ![image](https://resource.dopus.com/uploads/default/original/3X/b/7/b76c7b8b400897785f1562ad238d77aadfd82c95.png)  
[AliasPolice.opusscriptinstall](https://resource.dopus.com/uploads/short-url/hDcbW9RdpCA7BgK4kat8Q04qaIy.opusscript) (1.5 KB)

> **code**
>
> ```javascript
> function OnInit(initData) {
> initData.name = "AliasPolice";
> initData.version = "1.0";
> initData.copyright = "(c) 2025 Cris";
> //	initData.url = "https://resource.dopus.com/c/buttons-scripts/16";
> initData.desc = "";
> initData.default_enable = true;
> initData.min_version = "13.18";
> 
> }
> 
> // Called to add columns to Opus
> function OnAddColumns(addColData) {
> var col = addColData.AddColumn();
> col.name = "AliasPolice";
> col.method = "OnAliases";
> col.label = "Aliases";
> col.justify = "left";
> col.autogroup = true;
> col.autorefresh = true;
> col.namerefresh = true;
> }
> var g_AliasObj;
> // Implement the Aliases column
> function OnAliases(scriptColData) {
> if (!g_AliasObj) BuildAliasObject();
> try {
> var item = scriptColData.item;
> if (!item.is_dir) return;
> var alias_status = 0;
> var value = '';
> if (HasLabel(item, 'alias')) //item have the "alias" status
> alias_status += 1 << 0;
> if (g_AliasObj.hasOwnProperty(item)) //item is a recognized alias
> alias_status += 1 << 1;
> if (alias_status & 1 << 0) //recognize broken alias
> value += alias_status & 1 << 1 ? '<%ddbi:91>' : '<%ddbi:92>';
> else if (alias_status & 1 << 1 && !(alias_status & 1 << 0)) //if is a recognized alias but does not have the "alias" status
> {
> //In this part you can also correct the "alias" status by setting it
> //here we'll just show a different icon
> value += '<%ddbi:62>';
> }
> scriptColData.markup = value;
> 
> }
> catch (err) {
> DOpus.Output('Error : ' + err.description);
> scriptColData.markup = '';
> }
> }
> 
> function BuildAliasObject() {
> g_AliasObj = {};
> var aliases = DOpus.Aliases;
> var alias;
> for (var e = new Enumerator(aliases); !e.atEnd(); e.moveNext()) {
> alias = aliases(e.item());
> //We are going to ignore system aliases, change the line below if you want them back
> if (alias.system) continue;
> g_AliasObj[alias.path.def_value] = e.item();
> }
> aliases = null;
> }
> 
> function HasLabel(item, label) {
> try {
> var labels = item.Labels('*', 'explicit'); //"*" because we don't know the "Status" actual current name 
> for (var i = labels.length - 1; i >= 0; i--) {
> if (labels(i) === label) return true;
> }
> }
> catch (err) {
> DOpus.Output('Error reading labels for "' + item + '":' + err.description);
> }
> return false;
> }
> 
> ```

A test to see how it reacts.

  
(check how the icon change when I intentionally broke the alias)

- Another way would be to leave the filedisplay aside and focus on toolbars, creating several dynamic buttons (via `OnAddButton`) that list the aliases (similar to the built-in), but with the difference that they show (or even do things according to your needs) when they detect a broken alias (this can be controlled by monitoring changes in folderaliases.oxc, plus controls on each generated button).

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [September 20, 2025, 2:02pm UTC](https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227/8 "2025-09-20T14:02:41Z")

</div>

The Folder Aliases page in Preferences can find (and optionally delete) broken aliases, if that helps.

Click the Delete icon/menu and the option is in there. It'll tell you the names of any broken aliases it finds and ask for confirmation before deleting anything.

---

<div class="post-metadata">

**Author:** ![errante](https://resource.dopus.com/user_avatar/resource.dopus.com/errante/32/61692_2.png) [@errante](https://resource.dopus.com/u/errante)\
**Post date:** [September 20, 2025, 2:16pm UTC](https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227/9 "2025-09-20T14:16:57Z")

</div>

Correct. I assume he'll want to do other tasks besides deleting broken aliases? (that's why the need to recognize them in the file display)

> [@Leo](#):
>
> Click the Delete icon/menu and the option is in there. It'll tell you the names of any broken aliases it finds and ask for confirmation before deleting anything.

Is there any way to add the broken-link icon to broken aliases in that dialog? (so you can do more than just delete it)

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [September 20, 2025, 2:34pm UTC](https://resource.dopus.com/t/visual-indicator-for-folders-with-aliases/57227/10 "2025-09-20T14:34:32Z")

</div>

It's not shown in the list itself as it can take a long time to work out (e.g. if something points to a network server that doesn't exist, asking Windows if it exists can take 30 seconds).
