Skip to content
Snippets Groups Projects
Commit 35545bb1 authored by pascal.mouquet_ird.fr's avatar pascal.mouquet_ird.fr
Browse files

changed setPermissions function name to sen_permissions

parent 16a3e2f2
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ from pathlib import Path
from typing import List, Tuple, Optional, Union
from packaging import version
from .utils import grouper, setPermissions, get_Sen2Cor_version, get_latest_s2c_version_path
from .utils import grouper, set_permissions, get_Sen2Cor_version, get_latest_s2c_version_path
from .config import Config, SHARED_DATA
from .xmlparser import MetadataParser, Sen2ChainMetadataParser
from .sen2cor import process_sen2cor
......@@ -226,7 +226,7 @@ class L1cProduct(Product):
if self._library_product:
l2a_prod.archive()
l2a_prod = L2aProduct(l2a_identifier)
l2a_prod.setPermissions()
l2a_prod.set_permissions()
l2a_prod.update_md(sen2cor_version = get_Sen2Cor_version(s2c_path))
return self
......@@ -780,8 +780,11 @@ class L2aProduct(Product):
return self
def setPermissions(self):
setPermissions(self.path)
def set_permissions(self):
try:
set_permissions(self.path)
except:
logger.info("Cannot set permissions to: {}".format(self.identifier))
# def has_indice(self, indice):
# """
......
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