Author Topic: Excluding symbolic links  (Read 1985 times)

joecar

  • Senior Community Member
  • Posts: 439
  • Hero Points: 9
  • engineer/gearhead
Re: Excluding symbolic links
« Reply #15 on: August 22, 2024, 08:58:37 PM »
$0.02 suggestion:

see attached, would skip symlinks, i.e. not add a file resulting from following a symlink.

This would avoid "duplicate" files, makes it easier to navigate tagged objects.

joecar

  • Senior Community Member
  • Posts: 439
  • Hero Points: 9
  • engineer/gearhead
Re: Excluding symbolic links
« Reply #16 on: September 06, 2024, 05:09:53 PM »
Another way to look at this is as follows:

when adding files to a project, a file should not be added if it is already added
( but this would be more work than checking if the file is really a symlink )

joecar

  • Senior Community Member
  • Posts: 439
  • Hero Points: 9
  • engineer/gearhead
Re: Excluding symbolic links
« Reply #17 on: October 01, 2024, 06:07:13 PM »
More info:

I invoked SE with the option -ssymlink and I did File -> File Manager -> New File List and I see this

( actual files have non-zero file size, symlinks have zero file size ):

/* I chopped out the full pathname to make it easier to view */

>         0   5-22-2024   6:51p ----A  ndp250\src\hal\mic.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\mic.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\ndp115_dnn_regs.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\ndp115_regs.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\ndp115_spi_regs.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\ndp120_dnn_regs.h
>    534106   5-22-2024   6:51p ----A  ndp250\src\hal\ndp120_regs.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\ndp120_spi_regs.h
>     29847   5-22-2024   6:51p ----A  ndp250\src\hal\ndp250a0_dnn_regs.h
>    579097   5-22-2024   6:51p ----A  ndp250\src\hal\ndp250a0_regs.h
>     27311   5-22-2024   6:51p ----A  ndp250\src\hal\ndp250a0_spi_regs.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\ndp_regs.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\notify.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\notify.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\pdm.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\pdm.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\pwr.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\pwr.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\ringbuf.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\ringbuf.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\sample.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\sample.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\sc_reg_alias.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\sensor.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\sensor.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\sensor_function_list.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\sensor_function_list.h
>     10129   5-22-2024   6:51p ----A  ndp250\src\hal\serial.c
>      1142   5-22-2024   6:51p ----A  ndp250\src\hal\serial.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\softmax.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\softmax.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\spi.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\spi.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\spl.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\spl.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\test.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\test.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\timer.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\timer.h
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\varring.c
>         0   5-22-2024   6:51p ----A  ndp250\src\hal\varring.h
>     16499   9-26-2024  12:31p ----A  ndp250\src\hal\video.c
>       934   6-06-2024   9:31a ----A  ndp250\src\hal\video.h




joecar

  • Senior Community Member
  • Posts: 439
  • Hero Points: 9
  • engineer/gearhead
Re: Excluding symbolic links
« Reply #18 on: October 01, 2024, 06:14:10 PM »
Background:

my project has many directories each containing many files and many symlinks to other files and directories located in other directories in the same project...  this makes the tagging difficult to navigate since each symbol shows up in N instances.