Home / Function/ umaskForPath() — spring-boot Function Reference

umaskForPath() — spring-boot Function Reference

Architecture documentation for the umaskForPath() function in FilePermissionsTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  bd5b6069_49ec_b24b_a273_f59200c9a504["umaskForPath()"]
  7f6bea59_dfd6_8a96_c790_1f12cf481d22["umaskForPathWithNonExistentFile()"]
  7f6bea59_dfd6_8a96_c790_1f12cf481d22 -->|calls| bd5b6069_49ec_b24b_a273_f59200c9a504
  3926b264_0e09_50a9_8b7a_0af9a7c8f372["umaskForPathOnWindowsFails()"]
  3926b264_0e09_50a9_8b7a_0af9a7c8f372 -->|calls| bd5b6069_49ec_b24b_a273_f59200c9a504
  83cbcf8a_cb3c_9ed0_c51e_50996c1631ed["umaskForPathWithNullPath()"]
  83cbcf8a_cb3c_9ed0_c51e_50996c1631ed -->|calls| bd5b6069_49ec_b24b_a273_f59200c9a504
  style bd5b6069_49ec_b24b_a273_f59200c9a504 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/io/FilePermissionsTests.java lines 51–58

	@Test
	@DisabledOnOs(OS.WINDOWS)
	void umaskForPath() throws IOException {
		FileAttribute<Set<PosixFilePermission>> fileAttribute = PosixFilePermissions
			.asFileAttribute(PosixFilePermissions.fromString("rw-r-----"));
		Path tempFile = Files.createTempFile(this.tempDir, "umask", null, fileAttribute);
		assertThat(FilePermissions.umaskForPath(tempFile)).isEqualTo(0640);
	}

Domain

Subdomains

Called By

  • umaskForPathOnWindowsFails()
  • umaskForPathWithNonExistentFile()
  • umaskForPathWithNullPath()

Frequently Asked Questions

What does umaskForPath() do?
umaskForPath() is a function in the spring-boot codebase.
What calls umaskForPath()?
umaskForPath() is called by 3 function(s): umaskForPathOnWindowsFails, umaskForPathWithNonExistentFile, umaskForPathWithNullPath.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free