gitlab.com/evatix-go/core@v1.3.55/chmodhelper/fwChmodVerifier.go (about)

     1  package chmodhelper
     2  
     3  type fwChmodVerifier struct {
     4  	rw *SimpleFileReaderWriter
     5  }
     6  
     7  func (it fwChmodVerifier) HasMismatchFile() bool {
     8  	return ChmodVerify.IsMismatch(
     9  		it.rw.FilePath,
    10  		it.rw.ChmodFile)
    11  }
    12  
    13  func (it fwChmodVerifier) IsEqualFile() bool {
    14  	return ChmodVerify.IsEqual(
    15  		it.rw.FilePath,
    16  		it.rw.ChmodFile)
    17  }
    18  
    19  func (it fwChmodVerifier) HasMismatchParentDir() bool {
    20  	return ChmodVerify.IsMismatch(
    21  		it.rw.ParentDir,
    22  		it.rw.ChmodDir)
    23  }
    24  
    25  func (it fwChmodVerifier) IsEqualParentDir() bool {
    26  	return ChmodVerify.IsEqual(
    27  		it.rw.ParentDir,
    28  		it.rw.ChmodDir)
    29  }
    30  
    31  func (it fwChmodVerifier) MismatchErrorParentDir() error {
    32  	return ChmodVerify.MismatchError(
    33  		it.rw.ParentDir,
    34  		it.rw.ChmodDir)
    35  }
    36  
    37  func (it fwChmodVerifier) MismatchErrorFile() error {
    38  	return ChmodVerify.MismatchError(
    39  		it.rw.FilePath,
    40  		it.rw.ChmodFile)
    41  }