Changeset 623 for trunk/src/civ.m
- Timestamp:
- Apr 29, 2013, 11:27:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r621 r623 1730 1730 [tild,message]=fileattrib(RootPath); 1731 1731 if ~isempty(message) && ~isequal(message.UserWrite,1) 1732 errormsg=['No writ ting access to ' RootPath];1732 errormsg=['No writing access to ' RootPath]; 1733 1733 return 1734 1734 end … … 2001 2001 errormsg=['cannot create ' subdir_civ1_new ': ' msg1]; 2002 2002 return 2003 else 2003 elseif isunix 2004 2004 [xx,msg2] = fileattrib(fullfile(RootPath,subdir_civ1_new),'+w','g'); %yield writing access (+w) to user group (g) 2005 2005 if ~strcmp(msg2,'') … … 2116 2116 if ~exist(fullfile(RootPath,subdir_civ2_new),'dir') 2117 2117 [xx,m2]=mkdir(fullfile(RootPath,subdir_civ2_new)); 2118 if isunix 2118 2119 [xx,msg2] = fileattrib(fullfile(RootPath,subdir_civ2_new),'+w','g'); %yield writing access (+w) to user group (g) 2119 2120 if ~isequal(m2,'') 2120 2121 errormsg=['cannot create ' fullfile(RootPath,subdir_civ2_new) ': ' m2]; 2121 2122 return 2123 end 2122 2124 end 2123 2125 end … … 2148 2150 if ~exist(fullfile(RootPath,subdir_civ2_new),'dir') 2149 2151 [xx,m2]=mkdir(subdir_civ2_new); 2152 if isunix 2150 2153 [xx,msg2] = fileattrib(fullfile(RootPath,subdir_civ2_new),'+w','g'); %yield writing access (+w) to user group (g) 2151 2154 if ~isequal(m2,'') 2152 2155 errormsg= ['cannot create ' fullfile(RootPath,subdir_civ2_new) ': ' m2];%error message for directory creation 2153 2156 return 2157 end 2154 2158 end 2155 2159 end … … 4128 4132 case {'civ_matlab','civ_matlab.sh'} 4129 4133 filename=regexprep(Param.OutputFile,'(.+)([/\\])(.+$)','$1$20_XML$2$3.xml'); 4134 if isunix 4130 4135 fileattrib(fileparts(filename),'+w +x','o g');% set writting access 4136 end 4131 4137 save(struct2xml(Param),filename); 4132 4138 end
Note: See TracChangeset
for help on using the changeset viewer.