Skip to content
Snippets Groups Projects
Commit 8b913567 authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

WS-1338 Local delivery permissions changes

parent 3464d602
No related branches found
No related tags found
1 merge request!1231WS-1338 Local delivery permissions changes
Pipeline #8406 failed
Pipeline: workspaces

#8410

    Pipeline: workspaces

    #8409

      ......@@ -15,6 +15,7 @@
      #
      # You should have received a copy of the GNU General Public License
      # along with Workspaces. If not, see <https://www.gnu.org/licenses/>.
      import getpass
      import os
      import pathlib
      import shutil
      ......@@ -35,6 +36,12 @@ class LocalDestination(Destination):
      if not self.path.exists():
      self.path.mkdir(parents=True)
      # Open permissions on the delivery directory so both vlapipe and the user can edit it
      if path.owner() == getpass.getuser():
      path.chmod(0o2777)
      for p in path.rglob("*"):
      p.chmod(0o2777)
      def add_file(self, file: pathlib.Path, relative_path: str):
      """
      Copy contents of file to new file with path relative_path; creates directories if they don't exist
      ......
      0% Loading or .
      You are about to add 0 people to the discussion. Proceed with caution.
      Finish editing this message first!
      Please register or to comment