@Test public void testDeepFileCreation() throws Exception { // normal permissions in user home testDeepFileCreationBase("deep/file/creation/test", "deep", "deep/file/creation", (short)0644, (short)0644); // extra permissions in user home. umask will change the actual permissions. testDeepFileCreationBase("deep/file/creation/test", "deep", "deep/file/creation", (short)0777, (short)0755); // normal permissions in root testDeepFileCreationBase("/deep/file/creation/test", "/deep", "/deep/file/creation", (short)0644, (short)0644); // less permissions in root testDeepFileCreationBase("/deep/file/creation/test", "/deep", "/deep/file/creation", (short)0700, (short)0700); // one indirectly created directory in root testDeepFileCreationBase("/deep/file", "/deep", "/deep", (short)0644, (short)0644); // one indirectly created directory in user home testDeepFileCreationBase("deep/file", "deep", "deep", (short)0644, (short)0644); }
@Test public void testDeepFileCreation() throws Exception { // normal permissions in user home testDeepFileCreationBase("deep/file/creation/test", "deep", "deep/file/creation", (short)0644, (short)0644); // extra permissions in user home. umask will change the actual permissions. testDeepFileCreationBase("deep/file/creation/test", "deep", "deep/file/creation", (short)0777, (short)0755); // normal permissions in root testDeepFileCreationBase("/deep/file/creation/test", "/deep", "/deep/file/creation", (short)0644, (short)0644); // less permissions in root testDeepFileCreationBase("/deep/file/creation/test", "/deep", "/deep/file/creation", (short)0700, (short)0700); // one indirectly created directory in root testDeepFileCreationBase("/deep/file", "/deep", "/deep", (short)0644, (short)0644); // one indirectly created directory in user home testDeepFileCreationBase("deep/file", "deep", "deep", (short)0644, (short)0644); }