Support #22438

Simplification and reduction of the code related to how directories are being managed

Added by Lorena Lobato Pardavila 5 months ago. Updated 3 months ago.

Work in progress
Target version:
Start date:
Due date:
% Done:


Estimated time:


I saw we can reduce the code with the removal of clientDirSupport and chmodDirSupport and replace it by the classes from cWDictFile: simpleDirSupport and chmodDirSupport, respectively. This is because since we no longer need the user for privilege separation and, after removing not needed code, we can call the parent class directly. Here, an overview:

class clientDirSupport(cWDictFile.simpleDirSupport)
         • Inherits from cWDictFile.simpleDirSupport
         • It’s being passed by parameter to chmodClientDirSupport and being instantiated there.

class chmodCLientDirSupport(clientDirSupport)
        • Receives clientDirSupport (it can be replaced by simpleDirSupport)
         • It will be passed to clientProxiesDirSupport

To do: Remove the unnecessary classes and update clientLogDirSupport and clientProxiesDirSupport with the new classes

To keep in mind: already baseClientDirSupport and clientSymLink are inhering from the respectively classes in cWDictFile (cWDictFile.multiSimpleDirSupport). BUT, the problem here is in baseClientDirSupport, which will create the user base directory, using the function that I’d like to remove – cliendDirSupport. It’s being passed as a parameter for the function that supports create_dir and delete_dir in class dirsSupport (used for many directories creation).


#1 Updated by Lorena Lobato Pardavila 5 months ago

  • Status changed from New to Work in progress
  • Description updated (diff)

#2 Updated by Lorena Lobato Pardavila 4 months ago

  • Target version changed from v3_5 to v3_5_1

#3 Updated by Lorena Lobato Pardavila 3 months ago

  • Parent task deleted (#20215)

#4 Updated by Lorena Lobato Pardavila 3 months ago

  • Target version changed from v3_5_1 to v3_5_x

Also available in: Atom PDF