72 questions for “File System”

Found in 1 field. Select a question to see its full answer.

Information Technology

72 questions in 9 technologies

#QuestionTechnologyTopicLevel
1How would you use the WatchService API (java.nio.file) to monitor a directory for file system changes (creation, modification, deletion) in real time? Java › I/O & NIOJavaI/O & NIOIntermediate
2How would you implement the Composite pattern to treat individual objects and groups of objects uniformly, such as a file system with files and directories? Java › Design Patterns in JavaJavaDesign Patterns in JavaIntermediate
3How can a Flutter desktop app properly access the native operating system's own file system, such as letting a user open or save an actual local file, using the file_picker or similar dedicated packages? Flutter › Flutter for Desktop (Windows, macOS, Linux)FlutterFlutter for Desktop (Windows, macOS, Linux)Intermediate
4What is the difference between fs.rename() and manually copying then deleting a file, particularly across different filesystems or drives? Node.js › File System (fs) ModuleNode.jsFile System (fs) ModuleIntermediate
5How do you check whether a file or directory exists, and how do you retrieve useful metadata like a file's size or last modified time? PHP › File Handling & File System FunctionsPHPFile Handling & File System FunctionsIntermediate
6What security risks are associated with file handling operations that involve user supplied file paths, and how does path traversal attack prevention work? PHP › File Handling & File System FunctionsPHPFile Handling & File System FunctionsAdvanced
7What is the difference between fs.readFile() and fs.createReadStream() for reading a file in Node.js? Node.js › File System & File ProcessingNode.jsFile System & File ProcessingBeginner
8How do you read the contents of a file in PHP using functions like file_get_contents and fopen? PHP › File Handling & File System FunctionsPHPFile Handling & File System FunctionsBeginner
9How do you write data to a file in PHP, and what is the difference between overwriting a file and appending to it? PHP › File Handling & File System FunctionsPHPFile Handling & File System FunctionsBeginner
10How would you recursively read all files within a directory tree in Node.js? Node.js › File System & File ProcessingNode.jsFile System & File ProcessingIntermediate