本文整理了Java中org.apache.cassandra.io.util.FileUtils.createDirectory()
方法的一些代码示例,展示了FileUtils.createDirectory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtils.createDirectory()
方法的具体详情如下:
包路径:org.apache.cassandra.io.util.FileUtils
类名称:FileUtils
方法名:createDirectory
暂无
代码示例来源:origin: hector-client/hector
/**
* Creates a directory
*
* @param dir
* @throws IOException
*/
private static void mkdir(String dir) throws IOException {
FileUtils.createDirectory(dir);
}
代码示例来源:origin: hector-client/hector
/**
* Copies a resource from within the jar to a directory.
*
* @param resource
* @param directory
* @throws IOException
*/
private static void copy(String resource, String directory) throws IOException {
FileUtils.createDirectory(directory);
InputStream is = CassandraAuthTest.class.getResourceAsStream(resource);
String fileName = resource.substring(resource.lastIndexOf("/") + 1);
File file = new File(directory + System.getProperty("file.separator") + fileName);
OutputStream out = new FileOutputStream(file);
byte buf[] = new byte[1024];
int len;
while ((len = is.read(buf)) > 0) {
out.write(buf, 0, len);
}
out.close();
is.close();
}
}
代码示例来源:origin: jsevellec/cassandra-unit
/**
* Creates a directory
*
* @param dir
* @throws IOException
*/
private static void mkdir(String dir) {
FileUtils.createDirectory(dir);
}
代码示例来源:origin: jsevellec/cassandra-unit
/**
* Creates a directory
*
* @param dir
* @throws IOException
*/
private static void mkdir(String dir) {
FileUtils.createDirectory(dir);
}
代码示例来源:origin: lordofthejars/nosql-unit
/**
* Creates a directory
*
* @param dir
* @throws IOException
*/
private static void mkdir(String dir) throws IOException {
FileUtils.createDirectory(dir);
}
代码示例来源:origin: com.lordofthejars/nosqlunit-cassandra
/**
* Creates a directory
*
* @param dir
* @throws IOException
*/
private static void mkdir(String dir) throws IOException {
FileUtils.createDirectory(dir);
}
代码示例来源:origin: io.smartcat/cassandra-diagnostics-embedded-cassandra
/**
* Creates a directory.
*
* @param dir
* @throws IOException
*/
private static void mkdir(String dir) throws IOException {
FileUtils.createDirectory(dir);
}
代码示例来源:origin: org.hectorclient/hector-test
/**
* Creates a directory
*
* @param dir
* @throws IOException
*/
private static void mkdir(String dir) throws IOException {
FileUtils.createDirectory(dir);
}
代码示例来源:origin: org.cassandraunit/cassandra-unit
/**
* Creates a directory
*
* @param dir
* @throws IOException
*/
private static void mkdir(String dir) {
FileUtils.createDirectory(dir);
}
代码示例来源:origin: smartcat-labs/cassandra-diagnostics
/**
* Creates a directory.
*
* @param dir
* @throws IOException
*/
private static void mkdir(String dir) throws IOException {
FileUtils.createDirectory(dir);
}
代码示例来源:origin: me.prettyprint/hector-test
/**
* Creates a directory
*
* @param dir
* @throws IOException
*/
private static void mkdir(String dir) throws IOException {
FileUtils.createDirectory(dir);
}
代码示例来源:origin: org.apache.cassandra/cassandra-all
public static void createDirectory(String directory)
{
createDirectory(new File(directory));
}
代码示例来源:origin: org.apache.cassandra/cassandra-all
public static File getToolsOutputDirectory()
{
File historyDir = new File(System.getProperty("user.home"), ".cassandra");
FileUtils.createDirectory(historyDir);
return historyDir;
}
代码示例来源:origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra
public static void createDirectory(String directory)
{
createDirectory(new File(directory));
}
代码示例来源:origin: jsevellec/cassandra-unit
public static void createDirectory(String directory)
{
createDirectory(new File(directory));
}
代码示例来源:origin: com.strapdata.cassandra/cassandra-all
public static void createDirectory(String directory)
{
createDirectory(new File(directory));
}
代码示例来源:origin: jsevellec/cassandra-unit
public static File getToolsOutputDirectory()
{
File historyDir = new File(System.getProperty("user.home"), ".cassandra");
FileUtils.createDirectory(historyDir);
return historyDir;
}
代码示例来源:origin: com.strapdata.cassandra/cassandra-all
public static File getToolsOutputDirectory()
{
File historyDir = new File(System.getProperty("user.home"), ".cassandra");
FileUtils.createDirectory(historyDir);
return historyDir;
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server
public static File getToolsOutputDirectory()
{
File historyDir = new File(System.getProperty("user.home"), ".cassandra");
FileUtils.createDirectory(historyDir);
return historyDir;
}
代码示例来源:origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra
public static File getToolsOutputDirectory()
{
File historyDir = new File(System.getProperty("user.home"), ".cassandra");
FileUtils.createDirectory(historyDir);
return historyDir;
}
内容来源于网络,如有侵权,请联系作者删除!