Skip to content
  • Yanqin Jin's avatar
    Add IsDirectory() to Env and FS (#6711) · 243852ec
    Yanqin Jin authored
    Summary:
    IsDirectory() is a common API to check whether a path is a regular file or
    directory.
    POSIX: call stat() and use S_ISDIR(st_mode)
    Windows: PathIsDirectoryA() and PathIsDirectoryW()
    HDFS: FileSystem.IsDirectory()
    Java: File.IsDirectory()
    ...
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/6711
    
    Test Plan: make check
    
    Reviewed By: anand1976
    
    Differential Revision: D21053520
    
    Pulled By: riversand963
    
    fbshipit-source-id: 680aadfd8ce982b63689190cf31b3145d5a89e27
    243852ec
To find the state of this project's repository at the time of any of these versions, check out the tags.