├── .gitattributes ├── .github ├── CODEOWNERS ├── pull_request_template.md └── workflows │ ├── build-timestamped-master.yml │ ├── build-with-bal-test-graalvm.yml │ ├── central-publish.yml │ ├── fossa_scan.yml │ ├── publish-release.yml │ ├── pull-request.yml │ ├── trivy-scan.yml │ └── update_specs.yml ├── .gitignore ├── LICENSE ├── README.md ├── ballerina ├── Ballerina.toml ├── CompilerPlugin.toml ├── Dependencies.toml ├── README.md ├── build.gradle ├── file.bal ├── file_common.bal ├── file_errors.bal ├── file_meta_data.bal ├── file_path.bal ├── icon.png ├── init.bal ├── service_endpoint.bal ├── tests │ ├── directory-listener-test.bal │ ├── file-test.bal │ ├── filepath_test.bal │ └── resources │ │ ├── read-dir │ │ ├── temp-dir │ │ │ └── temp-file2.txt │ │ └── temp-file1.txt │ │ ├── src-dir │ │ └── nested-file.txt │ │ ├── src-file-modified.txt │ │ ├── src-file.txt │ │ ├── temp-dir │ │ └── nested-file.txt │ │ ├── test.txt │ │ └── test_nolink.txt ├── unix_file_path.bal └── windows_file_path.bal ├── changelog.md ├── codecov.yml ├── compiler-plugin-test ├── build.gradle └── src │ └── test │ ├── java │ └── io │ │ └── ballerina │ │ └── stdlib │ │ └── file │ │ └── compiler │ │ ├── CompilerPluginTest.java │ │ └── staticcodeanalyzer │ │ └── StaticCodeAnalyzerTest.java │ └── resources │ ├── static_code_analyzer │ ├── ballerina_packages │ │ ├── rule1 │ │ │ ├── Ballerina.toml │ │ │ └── main.bal │ │ └── rule2 │ │ │ ├── Ballerina.toml │ │ │ └── main.bal │ └── expected_output │ │ ├── rule1.json │ │ └── rule2.json │ ├── test-src │ ├── package_01 │ │ ├── Ballerina.toml │ │ └── file_service.bal │ ├── package_02 │ │ ├── Ballerina.toml │ │ └── file_service.bal │ ├── package_03 │ │ ├── Ballerina.toml │ │ └── file_service.bal │ ├── package_04 │ │ ├── Ballerina.toml │ │ └── file_service.bal │ ├── package_05 │ │ ├── Ballerina.toml │ │ └── file_service.bal │ ├── package_06 │ │ ├── Ballerina.toml │ │ └── file_service.bal │ ├── package_07 │ │ ├── Ballerina.toml │ │ └── file_service.bal │ ├── package_08 │ │ ├── Ballerina.toml │ │ ├── file_service.bal │ │ └── modules │ │ │ └── listener │ │ │ └── listener.bal │ ├── package_09 │ │ ├── Ballerina.toml │ │ └── file_service.bal │ └── package_10 │ │ ├── Ballerina.toml │ │ └── file_service.bal │ └── testng.xml ├── compiler-plugin ├── build.gradle └── src │ └── main │ ├── java │ ├── io │ │ └── ballerina │ │ │ └── stdlib │ │ │ └── file │ │ │ └── compiler │ │ │ ├── Constants.java │ │ │ ├── ErrorCodes.java │ │ │ ├── FileCodeAnalyzer.java │ │ │ ├── FileCompilerPlugin.java │ │ │ ├── FileServiceValidator.java │ │ │ └── staticcodeanalyzer │ │ │ ├── FilePathInjectionAnalyzer.java │ │ │ ├── FileRule.java │ │ │ ├── FileStaticCodeAnalyzer.java │ │ │ ├── InsecureDirectoryAccessAnalyzer.java │ │ │ ├── RuleFactory.java │ │ │ └── RuleImpl.java │ └── module-info.java │ └── resources │ └── rules.json ├── docs ├── proposals │ └── introduce_separators.md └── spec │ └── spec.md ├── examples └── file-management-system │ ├── File management system in Ballerina.md │ ├── manager │ ├── .gitignore │ ├── Ballerina.toml │ ├── Config.toml │ └── file.bal │ └── observer │ ├── .gitignore │ ├── Ballerina.toml │ ├── Config.toml │ └── file_manager.bal ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── native ├── build.gradle └── src │ └── main │ └── java │ ├── io │ └── ballerina │ │ └── stdlib │ │ └── file │ │ ├── nativeimpl │ │ ├── FilePathUtils.java │ │ └── Utils.java │ │ ├── service │ │ ├── DirectoryListenerConstants.java │ │ ├── FSListener.java │ │ └── endpoint │ │ │ ├── InitEndpoint.java │ │ │ ├── Register.java │ │ │ ├── Start.java │ │ │ └── Stop.java │ │ ├── transport │ │ ├── contract │ │ │ ├── FileSystemConnectorFactory.java │ │ │ └── FileSystemServerConnector.java │ │ └── contractimpl │ │ │ ├── FileSystemConnectorFactoryImpl.java │ │ │ └── FileSystemServerConnectorImpl.java │ │ └── utils │ │ ├── FileConstants.java │ │ ├── FileUtils.java │ │ └── ModuleUtils.java │ └── module-info.java ├── settings.gradle ├── spotbugs-exclude.xml └── test-utils ├── build.gradle └── src └── main └── java ├── io └── ballerina │ └── stdlib │ └── file │ └── testutils │ └── TestUtil.java └── module-info.java /.gitattributes: -------------------------------------------------------------------------------- 1 | # Ensure all Java files use LF. 2 | *.java eol=lf 3 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/build-timestamped-master.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/.github/workflows/build-timestamped-master.yml -------------------------------------------------------------------------------- /.github/workflows/build-with-bal-test-graalvm.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/.github/workflows/build-with-bal-test-graalvm.yml -------------------------------------------------------------------------------- /.github/workflows/central-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/.github/workflows/central-publish.yml -------------------------------------------------------------------------------- /.github/workflows/fossa_scan.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/.github/workflows/fossa_scan.yml -------------------------------------------------------------------------------- /.github/workflows/publish-release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/.github/workflows/publish-release.yml -------------------------------------------------------------------------------- /.github/workflows/pull-request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/.github/workflows/pull-request.yml -------------------------------------------------------------------------------- /.github/workflows/trivy-scan.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/.github/workflows/trivy-scan.yml -------------------------------------------------------------------------------- /.github/workflows/update_specs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/.github/workflows/update_specs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/README.md -------------------------------------------------------------------------------- /ballerina/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/Ballerina.toml -------------------------------------------------------------------------------- /ballerina/CompilerPlugin.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/CompilerPlugin.toml -------------------------------------------------------------------------------- /ballerina/Dependencies.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/Dependencies.toml -------------------------------------------------------------------------------- /ballerina/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/README.md -------------------------------------------------------------------------------- /ballerina/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/build.gradle -------------------------------------------------------------------------------- /ballerina/file.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/file.bal -------------------------------------------------------------------------------- /ballerina/file_common.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/file_common.bal -------------------------------------------------------------------------------- /ballerina/file_errors.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/file_errors.bal -------------------------------------------------------------------------------- /ballerina/file_meta_data.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/file_meta_data.bal -------------------------------------------------------------------------------- /ballerina/file_path.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/file_path.bal -------------------------------------------------------------------------------- /ballerina/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/icon.png -------------------------------------------------------------------------------- /ballerina/init.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/init.bal -------------------------------------------------------------------------------- /ballerina/service_endpoint.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/service_endpoint.bal -------------------------------------------------------------------------------- /ballerina/tests/directory-listener-test.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/tests/directory-listener-test.bal -------------------------------------------------------------------------------- /ballerina/tests/file-test.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/tests/file-test.bal -------------------------------------------------------------------------------- /ballerina/tests/filepath_test.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/tests/filepath_test.bal -------------------------------------------------------------------------------- /ballerina/tests/resources/read-dir/temp-dir/temp-file2.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ballerina/tests/resources/read-dir/temp-file1.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ballerina/tests/resources/src-dir/nested-file.txt: -------------------------------------------------------------------------------- 1 | Hi -------------------------------------------------------------------------------- /ballerina/tests/resources/src-file-modified.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/tests/resources/src-file-modified.txt -------------------------------------------------------------------------------- /ballerina/tests/resources/src-file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/tests/resources/src-file.txt -------------------------------------------------------------------------------- /ballerina/tests/resources/temp-dir/nested-file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ballerina/tests/resources/test.txt: -------------------------------------------------------------------------------- 1 | Test resource for with symbolic link -------------------------------------------------------------------------------- /ballerina/tests/resources/test_nolink.txt: -------------------------------------------------------------------------------- 1 | Test resource for without symbolic link -------------------------------------------------------------------------------- /ballerina/unix_file_path.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/unix_file_path.bal -------------------------------------------------------------------------------- /ballerina/windows_file_path.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/ballerina/windows_file_path.bal -------------------------------------------------------------------------------- /changelog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/changelog.md -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/codecov.yml -------------------------------------------------------------------------------- /compiler-plugin-test/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/build.gradle -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/java/io/ballerina/stdlib/file/compiler/CompilerPluginTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/java/io/ballerina/stdlib/file/compiler/CompilerPluginTest.java -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/StaticCodeAnalyzerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/StaticCodeAnalyzerTest.java -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/static_code_analyzer/ballerina_packages/rule1/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/static_code_analyzer/ballerina_packages/rule1/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/static_code_analyzer/ballerina_packages/rule1/main.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/static_code_analyzer/ballerina_packages/rule1/main.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/static_code_analyzer/ballerina_packages/rule2/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/static_code_analyzer/ballerina_packages/rule2/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/static_code_analyzer/ballerina_packages/rule2/main.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/static_code_analyzer/ballerina_packages/rule2/main.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/static_code_analyzer/expected_output/rule1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/static_code_analyzer/expected_output/rule1.json -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/static_code_analyzer/expected_output/rule2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/static_code_analyzer/expected_output/rule2.json -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_01/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_01/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_01/file_service.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_01/file_service.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_02/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_02/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_02/file_service.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_02/file_service.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_03/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_03/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_03/file_service.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_03/file_service.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_04/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_04/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_04/file_service.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_04/file_service.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_05/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_05/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_05/file_service.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_05/file_service.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_06/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_06/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_06/file_service.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_06/file_service.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_07/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_07/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_07/file_service.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_07/file_service.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_08/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_08/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_08/file_service.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_08/file_service.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_08/modules/listener/listener.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_08/modules/listener/listener.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_09/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_09/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_09/file_service.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_09/file_service.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_10/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_10/Ballerina.toml -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/test-src/package_10/file_service.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/test-src/package_10/file_service.bal -------------------------------------------------------------------------------- /compiler-plugin-test/src/test/resources/testng.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin-test/src/test/resources/testng.xml -------------------------------------------------------------------------------- /compiler-plugin/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/build.gradle -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/Constants.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/Constants.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/ErrorCodes.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/ErrorCodes.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/FileCodeAnalyzer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/FileCodeAnalyzer.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/FileCompilerPlugin.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/FileCompilerPlugin.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/FileServiceValidator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/FileServiceValidator.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/FilePathInjectionAnalyzer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/FilePathInjectionAnalyzer.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/FileRule.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/FileRule.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/FileStaticCodeAnalyzer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/FileStaticCodeAnalyzer.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/InsecureDirectoryAccessAnalyzer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/InsecureDirectoryAccessAnalyzer.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/RuleFactory.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/RuleFactory.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/RuleImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/io/ballerina/stdlib/file/compiler/staticcodeanalyzer/RuleImpl.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/java/module-info.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/java/module-info.java -------------------------------------------------------------------------------- /compiler-plugin/src/main/resources/rules.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/compiler-plugin/src/main/resources/rules.json -------------------------------------------------------------------------------- /docs/proposals/introduce_separators.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/docs/proposals/introduce_separators.md -------------------------------------------------------------------------------- /docs/spec/spec.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/docs/spec/spec.md -------------------------------------------------------------------------------- /examples/file-management-system/File management system in Ballerina.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/examples/file-management-system/File management system in Ballerina.md -------------------------------------------------------------------------------- /examples/file-management-system/manager/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/examples/file-management-system/manager/.gitignore -------------------------------------------------------------------------------- /examples/file-management-system/manager/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/examples/file-management-system/manager/Ballerina.toml -------------------------------------------------------------------------------- /examples/file-management-system/manager/Config.toml: -------------------------------------------------------------------------------- 1 | [manager] 2 | basePath = "BASE_PATH" 3 | -------------------------------------------------------------------------------- /examples/file-management-system/manager/file.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/examples/file-management-system/manager/file.bal -------------------------------------------------------------------------------- /examples/file-management-system/observer/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/examples/file-management-system/observer/.gitignore -------------------------------------------------------------------------------- /examples/file-management-system/observer/Ballerina.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/examples/file-management-system/observer/Ballerina.toml -------------------------------------------------------------------------------- /examples/file-management-system/observer/Config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/examples/file-management-system/observer/Config.toml -------------------------------------------------------------------------------- /examples/file-management-system/observer/file_manager.bal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/examples/file-management-system/observer/file_manager.bal -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/gradle.properties -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/gradlew.bat -------------------------------------------------------------------------------- /native/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/build.gradle -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/nativeimpl/FilePathUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/nativeimpl/FilePathUtils.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/nativeimpl/Utils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/nativeimpl/Utils.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/service/DirectoryListenerConstants.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/service/DirectoryListenerConstants.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/service/FSListener.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/service/FSListener.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/service/endpoint/InitEndpoint.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/service/endpoint/InitEndpoint.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/service/endpoint/Register.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/service/endpoint/Register.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/service/endpoint/Start.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/service/endpoint/Start.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/service/endpoint/Stop.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/service/endpoint/Stop.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/transport/contract/FileSystemConnectorFactory.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/transport/contract/FileSystemConnectorFactory.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/transport/contract/FileSystemServerConnector.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/transport/contract/FileSystemServerConnector.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/transport/contractimpl/FileSystemConnectorFactoryImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/transport/contractimpl/FileSystemConnectorFactoryImpl.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/transport/contractimpl/FileSystemServerConnectorImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/transport/contractimpl/FileSystemServerConnectorImpl.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/utils/FileConstants.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/utils/FileConstants.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/utils/FileUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/utils/FileUtils.java -------------------------------------------------------------------------------- /native/src/main/java/io/ballerina/stdlib/file/utils/ModuleUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/io/ballerina/stdlib/file/utils/ModuleUtils.java -------------------------------------------------------------------------------- /native/src/main/java/module-info.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/native/src/main/java/module-info.java -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/settings.gradle -------------------------------------------------------------------------------- /spotbugs-exclude.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/spotbugs-exclude.xml -------------------------------------------------------------------------------- /test-utils/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/test-utils/build.gradle -------------------------------------------------------------------------------- /test-utils/src/main/java/io/ballerina/stdlib/file/testutils/TestUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/test-utils/src/main/java/io/ballerina/stdlib/file/testutils/TestUtil.java -------------------------------------------------------------------------------- /test-utils/src/main/java/module-info.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ballerina-platform/module-ballerina-file/HEAD/test-utils/src/main/java/module-info.java --------------------------------------------------------------------------------